1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00
This commit is contained in:
Michał W. Urbańczyk 2012-03-01 11:57:38 +00:00
parent 18b1b83c8a
commit a833cbd308

View File

@ -3072,6 +3072,10 @@ static bool immobile(const CStack *s)
void CBattleInterface::bTacticNextStack()
{
//no switching stacks when the current one is moving
if(animsAreDisplayed.get())
return;
TStacks stacksOfMine = tacticianInterface->cb->battleGetStacks(CBattleCallback::ONLY_MINE);
stacksOfMine.erase(std::remove_if(stacksOfMine.begin(), stacksOfMine.end(), &immobile), stacksOfMine.end());
TStacks::iterator it = vstd::find(stacksOfMine, activeStack);