Explorar o código

Fix removing STACK_GETS_TURN bonuses
* this should fix some crashes with FRENZY spell

AlexVinS %!s(int64=10) %!d(string=hai) anos
pai
achega
b1837d0311
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/NetPacksLib.cpp

+ 1 - 1
lib/NetPacksLib.cpp

@@ -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);