Explorar o código

VCAI: always clear teleport channel probing list if we lost hero

ArseniyShestakov %!s(int64=10) %!d(string=hai) anos
pai
achega
11d4b4291c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      AI/VCAI/VCAI.cpp

+ 1 - 0
AI/VCAI/VCAI.cpp

@@ -1694,6 +1694,7 @@ bool VCAI::moveHeroToTile(int3 dst, HeroPtr h)
 		if(!h)
 		{
 			lostHero(h);
+			teleportChannelProbingList.clear();
 			if (status.channelProbing()) // if hero lost during channel probing we need to switch this mode off
 				status.setChannelProbing(false);
 			throw cannotFulfillGoalException("Hero was lost!");