1
0
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:
Michał W. Urbańczyk
2011-02-22 09:47:25 +00:00
parent 1458cf64c2
commit a46ad0b7ef
16 changed files with 144 additions and 78 deletions

View File

@@ -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()