mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Fix dismissing hero from opening hero window in town window that is
opened in kindom overview window
This commit is contained in:
parent
8129cbc514
commit
3c0037efca
@ -404,9 +404,6 @@ void CPlayerInterface::heroKilled(const CGHeroInstance* hero)
|
||||
|
||||
adventureInt->onHeroChanged(hero);
|
||||
localState->erasePath(hero);
|
||||
|
||||
for (auto ki : GH.windows().findWindows<CKingdomInterface>())
|
||||
ki->heroRemoved();
|
||||
}
|
||||
|
||||
void CPlayerInterface::heroVisit(const CGHeroInstance * visitor, const CGObjectInstance * visitedObj, bool start)
|
||||
@ -1489,6 +1486,9 @@ void CPlayerInterface::objectRemovedAfter()
|
||||
// visiting or garrisoned hero removed - recreate castle window
|
||||
if (castleInt)
|
||||
openTownWindow(castleInt->town);
|
||||
|
||||
for (auto ki : GH.windows().findWindows<CKingdomInterface>())
|
||||
ki->heroRemoved();
|
||||
}
|
||||
|
||||
void CPlayerInterface::playerBlocked(int reason, bool start)
|
||||
|
Loading…
x
Reference in New Issue
Block a user