1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fix for fix, ugh.

This commit is contained in:
DJWarmonger 2018-08-08 14:26:21 +02:00
parent d07a77f34b
commit 4b602c42ff

View File

@ -2716,6 +2716,11 @@ void VCAI::lostHero(HeroPtr h)
}
vstd::erase_if_present(reservedHeroesMap, h);
vstd::erase_if_present(cachedSectorMaps, h);
vstd::erase_if_present(visitedHeroes, h);
for (auto heroVec : visitedHeroes)
{
vstd::erase_if_present(heroVec.second, h);
}
}
void VCAI::answerQuery(QueryID queryID, int selection)