1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Serialize owner for abandoned mine

This commit is contained in:
nordsoft 2023-09-21 16:44:13 +02:00 committed by Ivan Savenko
parent aa96a53f37
commit 870aeddad5

View File

@ -208,7 +208,7 @@ void CGMine::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answer) con
void CGMine::serializeJsonOptions(JsonSerializeFormat & handler)
{
CArmedInstance::serializeJsonOptions(handler);
serializeJsonOwner(handler);
if(isAbandoned())
{
if(handler.saving)
@ -239,10 +239,6 @@ void CGMine::serializeJsonOptions(JsonSerializeFormat & handler)
}
}
}
else
{
serializeJsonOwner(handler);
}
}
GameResID CGResource::resourceID() const