1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-27 00:41:08 +02:00

Workaround for hero & town issue. Game still crashes elsewhere, though.

This commit is contained in:
DjWarmonger
2014-07-01 12:07:53 +02:00
parent dc98f14884
commit bae9f2083f
4 changed files with 24 additions and 8 deletions

View File

@ -1899,6 +1899,13 @@ void CGameState::initVisitingAndGarrisonedHeroes()
}
}
}
for (auto hero : map->heroesOnMap)
{
if (hero->visitedTown)
{
assert (hero->visitedTown->visitingHero == hero);
}
}
}
BFieldType CGameState::battleGetBattlefieldType(int3 tile)