From 496338813c2a9eb869762dc429e63d029b691217 Mon Sep 17 00:00:00 2001 From: ArseniyShestakov Date: Mon, 9 Mar 2015 02:27:49 +0300 Subject: [PATCH] VCAI: explicitly check for teleportation between subterranean gates --- AI/VCAI/VCAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/VCAI/VCAI.cpp b/AI/VCAI/VCAI.cpp index 77e00f81f..1b827eebc 100644 --- a/AI/VCAI/VCAI.cpp +++ b/AI/VCAI/VCAI.cpp @@ -129,7 +129,7 @@ void VCAI::heroMoved(const TryMoveHero & details) { if(cb->isTeleportChannelBidirectional(t1->channel)) { - if(o1->ID == Obj::SUBTERRANEAN_GATE) + if(o1->ID == Obj::SUBTERRANEAN_GATE && o1->ID == o2->ID) // We need to only add subterranean gates in knownSubterraneanGates. Used for features not yet ported to use teleport channels { knownSubterraneanGates[o1] = o2; knownSubterraneanGates[o2] = o1;