azerothcore / mod-eluna

Eluna Lua Engine © for WoW Emulators
https://elunaluaengine.github.io/
GNU General Public License v3.0
100 stars 130 forks source link

:660:65: fatal error: non-virtual member function marked 'override' hides virtual member function #132

Closed souloi closed 1 year ago

souloi commented 1 year ago

/home/ubuntu/azerothcore/modules/mod-eluna/src/ElunaLuaEngine_SC.cpp:660:65: fatal error: non-virtual member function marked 'override' hides virtual member function void OnGiveXP(Player player, uint32& amount, Unit victim) override ^ /home/ubuntu/azerothcore/src/server/game/Scripting/ScriptMgr.h:1038:18: note: hidden overloaded virtual function 'PlayerScript::OnGiveXP' declared here: different number of parameters (4 vs 3) virtual void OnGiveXP(Player /player/, uint32& /amount/, Unit /victim/, uint8 /xpSource/) { } ^ 1 error generated. make[2]: [modules/CMakeFiles/modules.dir/build.make:154: modules/CMakeFiles/modules.dir/mod-eluna/src/ElunaLuaEngine_SC.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:1287: modules/CMakeFiles/modules.dir/all] Error 2

r-o-b-o-t-o commented 1 year ago

Hello, this should be fixed with the latest commit. Please pull the latest mod-eluna and try again.

souloi commented 1 year ago

ok