1
0
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:
ArseniyShestakov 2015-12-05 08:08:02 +03:00
parent 360ebcce7e
commit 7708810148

View File

@ -345,14 +345,6 @@ public:
template <typename Handler> void serializeInternal(Handler &h, const int version)
{
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 & visitableObjs & alreadyVisited & reservedObjs;
h & saving & status & battlename;