mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Remove ConstTransitivePtr from hero and town instances
This commit is contained in:
@ -143,11 +143,11 @@ void NewTurnProcessor::onPlayerTurnStarted(PlayerColor which)
|
||||
for (const auto * t : playerState->getTowns())
|
||||
{
|
||||
//garrison hero first - consistent with original H3 Mana Vortex and Battle Scholar Academy levelup windows order
|
||||
if (t->garrisonHero != nullptr)
|
||||
gameHandler->objectVisited(t, t->garrisonHero);
|
||||
if (t->getGarrisonHero() != nullptr)
|
||||
gameHandler->objectVisited(t, t->getGarrisonHero());
|
||||
|
||||
if (t->visitingHero != nullptr)
|
||||
gameHandler->objectVisited(t, t->visitingHero);
|
||||
if (t->getVisitingHero() != nullptr)
|
||||
gameHandler->objectVisited(t, t->getVisitingHero());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user