mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-25 00:37:24 +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:
@ -1444,7 +1444,7 @@ void CAdvMapInt::fnextHero()
|
|||||||
i++;
|
i++;
|
||||||
if(i >= LOCPLINT->wanderingHeroes.size())
|
if(i >= LOCPLINT->wanderingHeroes.size())
|
||||||
i = 0;
|
i = 0;
|
||||||
} while (LOCPLINT->wanderingHeroes[i]->movement && i!=start);
|
} while (!LOCPLINT->wanderingHeroes[i]->movement && i!=start);
|
||||||
heroList.select(i);
|
heroList.select(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user