CTF error decompile in IGUNZ !!!
Stable- Gunz/ZRuleDeathMatch.cpp error
ZRuleDeathMatch.cpp
ZRuleDeathMatch.cpp(137) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
Cast from base to derived requires dynamic_cast or static_cast
ZRuleDeathMatch.cpp(156) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
Cast from base to derived requires dynamic_cast or static_cast
ZRuleDeathMatch.cpp(168) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
Cast from base to derived requires dynamic_cast or static_cast
ZRuleDeathMatch.cpp(198) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
Cast from base to derived requires dynamic_cast or static_cast
ZRuleDeathMatch.cpp(236) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
Cast from base to derived requires dynamic_cast or static_cast
ZRuleDeathMatch.cpp(246) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
Cast from base to derived requires dynamic_cast or static_cast
ZReplay error
ZReplay.cpp
ZReplay.cpp(312) : error C2512: 'ZMyCharacter' : no appropriate default constructor available
ZReplay.cpp(318) : error C2512: 'ZNetCharacter' : no appropriate default constructor available
ZReplay.cpp(340) : error C2440: 'initializing' : cannot convert from 'ZCharacterObject *' to 'ZCharacter *'
Cast from base to derived requires dynamic_cast or static_cast
I need to add to keep me out this error?
i decompile in gunz
Re: CTF error decompile in IGUNZ !!!
hm ok wait. define class before !
you can see this line in your ZRuleDeathMatch.cpp
Code:
ZCharacter* pCharacter = (*itor).second;
just replace all line with below one or just add (ZCharacter*) before (*itor)
Code:
ZCharacter* pCharacter = (ZCharacter*)(*itor).second;
all done :)