mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix stackinstance deserialization
This commit is contained in:
@@ -859,9 +859,6 @@ PlayerColor CStackInstance::getOwner() const
|
||||
|
||||
void CStackInstance::deserializationFix()
|
||||
{
|
||||
const CCreature *backup = type;
|
||||
type = nullptr;
|
||||
setType(backup);
|
||||
const CArmedInstance *armyBackup = _armyObj;
|
||||
_armyObj = nullptr;
|
||||
setArmyObj(armyBackup);
|
||||
|
||||
Reference in New Issue
Block a user