Fix removing STACK_GETS_TURN bonuses

* this should fix some crashes with FRENZY spell
This commit is contained in:
AlexVinS
2015-06-02 07:12:01 +03:00
parent 45a3ad94ae
commit b1837d0311
+1 -1
View File
@@ -1110,7 +1110,7 @@ DLL_LINKAGE void BattleSetActiveStack::applyGs( CGameState *gs )
CStack *st = gs->curB->getStack(stack);
//remove bonuses that last until when stack gets new turn
st->getBonusList().remove_if(Bonus::UntilGetsTurn);
st->popBonuses(Bonus::UntilGetsTurn);
if(vstd::contains(st->state,EBattleStackState::MOVED)) //if stack is moving second time this turn it must had a high morale bonus
st->state.insert(EBattleStackState::HAD_MORALE);