1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Workaround-ish fix for last scenario of Angel Wings (un)equipping

This commit is contained in:
Ivan Savenko 2023-06-22 14:52:39 +03:00
parent 03c3797945
commit 6546242c03

View File

@ -125,6 +125,12 @@ void AdventureMapInterface::activate()
}
GH.fakeMouseMove(); //to restore the cursor
// workaround for an edge case:
// if player unequips Angel Wings / Boots of Levitation of currently active hero
// game will correctly invalidate paths but current route will not be updated since verifyPath() is not called for current hero
if (LOCPLINT->makingTurn && LOCPLINT->localState->getCurrentHero())
LOCPLINT->localState->verifyPath(LOCPLINT->localState->getCurrentHero());
}
void AdventureMapInterface::deactivate()