ZhengPeiRu21 / mod-challenge-modes

Challenge Modes Module for AzerothCore
MIT License
41 stars 41 forks source link

Compile issue sSpellMgr #42

Open Viskus opened 6 days ago

Viskus commented 6 days ago

Unsure why this won't compile now, is anyone else having the issue?

azerothcore/modules/mod-challenge-modes/src/ChallengeModes.cpp:699:38: fatal error: use of undeclared identifier 'sSpellMgr'
  699 |         SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellID);
      |                                      ^
1 error generated.
gmake[2]: *** [modules/CMakeFiles/modules.dir/build.make:286: modules/CMakeFiles/modules.dir/mod-challenge-modes/src/ChallengeModes.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
Viskus commented 6 days ago

It seems adding #include "SpellMgr.h" into the ChallengeModes.cpp file has allowed it to compile.