mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Next set of fixes, mostly for deserialization.
This commit is contained in:
@@ -650,8 +650,12 @@ std::string CStackInstance::nodeName() const
|
||||
|
||||
void CStackInstance::deserializationFix()
|
||||
{
|
||||
setType(type);
|
||||
setArmyObj(armyObj);
|
||||
const CCreature *backup = type;
|
||||
type = NULL;
|
||||
setType(backup);
|
||||
const CArmedInstance *armyBackup = _armyObj;
|
||||
_armyObj = NULL;
|
||||
setArmyObj(armyBackup);
|
||||
}
|
||||
|
||||
CStackBasicDescriptor::CStackBasicDescriptor()
|
||||
|
||||
Reference in New Issue
Block a user