cocacola13
Member
hello trying to copy the reborn system, but an error pops up during compilation
[ 2%] Building CXX object CMakeFiles/tfs.dir/src/game.cpp.o
/home/ots/src/game.cpp: In member function ‘bool Game::combatChangeHealth(Creature*, Creature*, CombatDamage&)’:
/home/ots/src/game.cpp:3791:44: error: ‘class Player’ has no member named ‘rebirth’
3791 | bonusRebirth = attackerPlayer->rebirth * g_config.getNumber(ConfigManager::REBORN_DMGBONUS);
| ^~~~~~~
make[2]: *** [CMakeFiles/tfs.dir/build.make:413: CMakeFiles/tfs.dir/src/game.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
I can't get along
reborn system : reborn
Edit: One
typo in configmanager.h
Not work only this same error
[ 2%] Building CXX object CMakeFiles/tfs.dir/src/game.cpp.o
/home/ots/src/game.cpp: In member function ‘bool Game::combatChangeHealth(Creature*, Creature*, CombatDamage&)’:
/home/ots/src/game.cpp:3791:44: error: ‘class Player’ has no member named ‘rebirth’
3791 | bonusRebirth = attackerPlayer->rebirth * g_config.getNumber(ConfigManager::REBORN_DMGBONUS);
| ^~~~~~~
make[2]: *** [CMakeFiles/tfs.dir/build.make:413: CMakeFiles/tfs.dir/src/game.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
I can't get along
reborn system : reborn
Edit: One
typo in configmanager.h
Post automatically merged:
Not work only this same error
Last edited: