well I was compiling the last rev of tfs1.0 and a wild error appears
dont know what is happening and i hope you guys could help and teach me how to fix it
Code:
[ 47%] Building CXX object CMakeFiles/tfs.dir/src/luascript.cpp.o
/Users/CamilaGonzalez/forgottenserver/src/luascript.cpp:12046:32: error:
'reinterpret_cast' to class 'CombatSpell *' from its base at non-zero
offset 'BaseSpell *' behaves differently from 'static_cast'
[-Werror,-Wreinterpret-base-class]
...reinterpret_cast<CombatSpell*>(spellBlock.spell));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/CamilaGonzalez/forgottenserver/src/luascript.cpp:12046:32: note: use
'static_cast' to adjust the pointer correctly while downcasting
pushUserdata<CombatSpell>(L, reinterpret_cast<CombatSpel...
^~~~~~~~~~~~~~~~
static_cast
/Users/CamilaGonzalez/forgottenserver/src/luascript.cpp:12076:32: error:
'reinterpret_cast' to class 'CombatSpell *' from its base at non-zero
offset 'BaseSpell *' behaves differently from 'static_cast'
[-Werror,-Wreinterpret-base-class]
...reinterpret_cast<CombatSpell*>(spellBlock.spell));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/CamilaGonzalez/forgottenserver/src/luascript.cpp:12076:32: note: use
'static_cast' to adjust the pointer correctly while downcasting
pushUserdata<CombatSpell>(L, reinterpret_cast<CombatSpel...
^~~~~~~~~~~~~~~~
static_cast
2 errors generated.
make[2]: *** [CMakeFiles/tfs.dir/src/luascript.cpp.o] Error 1
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
make: *** [all] Error 2
MacBook-Pro-de-Camila:build CamilaGonzalez$
dont know what is happening and i hope you guys could help and teach me how to fix it