mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Fix github #2335 - town garrison not updating in info box
This commit is contained in:
@@ -572,7 +572,14 @@ void CPlayerInterface::garrisonsChanged(std::vector<const CGObjectInstance *> ob
|
|||||||
auto * town = dynamic_cast<const CGTownInstance*>(object);
|
auto * town = dynamic_cast<const CGTownInstance*>(object);
|
||||||
|
|
||||||
if (hero)
|
if (hero)
|
||||||
|
{
|
||||||
adventureInt->onHeroChanged(hero);
|
adventureInt->onHeroChanged(hero);
|
||||||
|
|
||||||
|
if(hero->inTownGarrison)
|
||||||
|
{
|
||||||
|
adventureInt->onTownChanged(hero->visitedTown);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (town)
|
if (town)
|
||||||
adventureInt->onTownChanged(town);
|
adventureInt->onTownChanged(town);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user