mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fxied #887.
This commit is contained in:
parent
18b1b83c8a
commit
a833cbd308
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user