From 77088101483508577b0970a353923515f046dfd8 Mon Sep 17 00:00:00 2001 From: ArseniyShestakov Date: Sat, 5 Dec 2015 08:08:02 +0300 Subject: [PATCH] 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. --- AI/VCAI/VCAI.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/AI/VCAI/VCAI.h b/AI/VCAI/VCAI.h index a208d0785..6963b8c79 100644 --- a/AI/VCAI/VCAI.h +++ b/AI/VCAI/VCAI.h @@ -345,14 +345,6 @@ public: template 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;