diff --git a/src/aoe_loot.cpp b/src/aoe_loot.cpp index bb5e823..5ae4774 100644 --- a/src/aoe_loot.cpp +++ b/src/aoe_loot.cpp @@ -17,7 +17,7 @@ #include "aoe_loot.h" -void AOELootPlayer::OnLogin(Player* player) +void AOELootPlayer::OnPlayerLogin(Player* player) { if (sConfigMgr->GetOption("AOELoot.Enable", true)) { diff --git a/src/aoe_loot.h b/src/aoe_loot.h index 17ae33c..a3bc300 100644 --- a/src/aoe_loot.h +++ b/src/aoe_loot.h @@ -35,7 +35,7 @@ class AOELootPlayer : public PlayerScript public: AOELootPlayer() : PlayerScript("AOELootPlayer") { } - void OnLogin(Player* player) override; + void OnPlayerLogin(Player* player) override; }; class AOELootServer : public ServerScript