mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
VCAI: don't serialize destinationTeleportPos to avoid crash
This won't affect AI functionality except if game saved while AI moving through teleporters. Serialization for some reason don't work properly and cause save loading to fail.
This commit is contained in:
parent
360ebcce7e
commit
7708810148
@ -345,14 +345,6 @@ public:
|
|||||||
template <typename Handler> void serializeInternal(Handler &h, const int version)
|
template <typename Handler> void serializeInternal(Handler &h, const int version)
|
||||||
{
|
{
|
||||||
h & knownTeleportChannels & knownSubterraneanGates & destinationTeleport;
|
h & knownTeleportChannels & knownSubterraneanGates & destinationTeleport;
|
||||||
if(version >= 755)
|
|
||||||
{
|
|
||||||
h & destinationTeleportPos;
|
|
||||||
}
|
|
||||||
else if(!h.saving)
|
|
||||||
{
|
|
||||||
destinationTeleportPos = int3(-1);
|
|
||||||
}
|
|
||||||
h & townVisitsThisWeek & lockedHeroes & reservedHeroesMap; //FIXME: cannot instantiate abstract class
|
h & townVisitsThisWeek & lockedHeroes & reservedHeroesMap; //FIXME: cannot instantiate abstract class
|
||||||
h & visitableObjs & alreadyVisited & reservedObjs;
|
h & visitableObjs & alreadyVisited & reservedObjs;
|
||||||
h & saving & status & battlename;
|
h & saving & status & battlename;
|
||||||
|
Loading…
Reference in New Issue
Block a user