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

"Next Hero" on adventure map now selects heroes who have movement points left, rather than those who don't.

This commit is contained in:
OnionKnight 2009-08-17 13:50:21 +00:00
parent c42ef6a23e
commit 1ef51b6888

View File

@ -1444,7 +1444,7 @@ void CAdvMapInt::fnextHero()
i++;
if(i >= LOCPLINT->wanderingHeroes.size())
i = 0;
} while (LOCPLINT->wanderingHeroes[i]->movement && i!=start);
} while (!LOCPLINT->wanderingHeroes[i]->movement && i!=start);
heroList.select(i);
}