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:
@ -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)
|
||||
|
Reference in New Issue
Block a user