1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Fix excessive paths updates when using Fly/Water Walk

This commit is contained in:
Ivan Savenko
2025-01-30 16:43:52 +00:00
parent 1bf1aa8489
commit 6957ac33b6

View File

@@ -107,9 +107,6 @@ void AdventureMapInterface::onHeroMovementStarted(const CGHeroInstance * hero)
void AdventureMapInterface::onHeroChanged(const CGHeroInstance *h) void AdventureMapInterface::onHeroChanged(const CGHeroInstance *h)
{ {
if (h)
LOCPLINT->localState->verifyPath(h);
widget->getHeroList()->updateElement(h); widget->getHeroList()->updateElement(h);
if (h && h == LOCPLINT->localState->getCurrentHero() && !widget->getInfoBar()->showingComponents()) if (h && h == LOCPLINT->localState->getCurrentHero() && !widget->getInfoBar()->showingComponents())