Fix override annotations

This commit is contained in:
郑佩茹
2022-03-08 14:08:00 -07:00
parent 789c09d642
commit a18e4adcba
2 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
#include "Transmogrification.h" #include "Transmogrification.h"
#include "../../../src/server/game/Entities/Item/ItemTemplate.h" #include "ItemTemplate.h"
Transmogrification* Transmogrification::instance() Transmogrification* Transmogrification::instance()
{ {

View File

@@ -539,7 +539,7 @@ public:
{ {
AddToDatabase(player, item->GetTemplate()); AddToDatabase(player, item->GetTemplate());
} }
}; }
void OnPlayerCompleteQuest(Player* player, Quest const* quest) override void OnPlayerCompleteQuest(Player* player, Quest const* quest) override
{ {
@@ -563,7 +563,7 @@ public:
} }
} }
void OnAfterSetVisibleItemSlot(Player* player, uint8 slot, Item *item) void OnAfterSetVisibleItemSlot(Player* player, uint8 slot, Item *item) override
{ {
if (!item) if (!item)
return; return;
@@ -574,12 +574,12 @@ public:
} }
} }
void OnAfterMoveItemFromInventory(Player* /*player*/, Item* it, uint8 /*bag*/, uint8 /*slot*/, bool /*update*/) void OnAfterMoveItemFromInventory(Player* /*player*/, Item* it, uint8 /*bag*/, uint8 /*slot*/, bool /*update*/) override
{ {
sT->DeleteFakeFromDB(it->GetGUID().GetCounter()); sT->DeleteFakeFromDB(it->GetGUID().GetCounter());
} }
void OnLogin(Player* player) void OnLogin(Player* player) override
{ {
ObjectGuid playerGUID = player->GetGUID(); ObjectGuid playerGUID = player->GetGUID();
sT->entryMap.erase(playerGUID); sT->entryMap.erase(playerGUID);