1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

vcmi: request pop all when hero is moved

This way new pickup will show immidately.
This commit is contained in:
Konstantin
2023-03-10 21:29:20 +03:00
parent bf67784840
commit 3d33da0a9e
3 changed files with 19 additions and 5 deletions

View File

@@ -324,6 +324,7 @@ void CPlayerInterface::heroMoved(const TryMoveHero & details, bool verbose)
if (!hero)
return;
adventureInt->infoBar->requestPopAll();
if (details.result == TryMoveHero::EMBARK || details.result == TryMoveHero::DISEMBARK)
{
if (hero->getRemovalSound())