From a18e4adcba59b4238d7c9c69411590438ef9b1b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Tue, 8 Mar 2022 14:08:00 -0700 Subject: [PATCH] Fix override annotations --- src/Transmogrification.cpp | 2 +- src/transmog_scripts.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Transmogrification.cpp b/src/Transmogrification.cpp index 6e1ebf4..60387b6 100644 --- a/src/Transmogrification.cpp +++ b/src/Transmogrification.cpp @@ -1,5 +1,5 @@ #include "Transmogrification.h" -#include "../../../src/server/game/Entities/Item/ItemTemplate.h" +#include "ItemTemplate.h" Transmogrification* Transmogrification::instance() { diff --git a/src/transmog_scripts.cpp b/src/transmog_scripts.cpp index 308eea8..333a688 100644 --- a/src/transmog_scripts.cpp +++ b/src/transmog_scripts.cpp @@ -539,7 +539,7 @@ public: { AddToDatabase(player, item->GetTemplate()); } - }; + } 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) 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()); } - void OnLogin(Player* player) + void OnLogin(Player* player) override { ObjectGuid playerGUID = player->GetGUID(); sT->entryMap.erase(playerGUID);