Ver Fonte

Fix crash at battle end

Tomasz Zieliński há 2 anos atrás
pai
commit
f483f7bb53
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      lib/NetPacksLib.cpp

+ 3 - 0
lib/NetPacksLib.cpp

@@ -2265,6 +2265,9 @@ void BattleAttack::applyGs(CGameState * gs)
 
 void StartAction::applyGs(CGameState *gs)
 {
+	if (!gs->curB)
+		return;
+
 	CStack *st = gs->curB->getStack(ba.stackNumber);
 
 	if(ba.actionType == EActionType::END_TACTIC_PHASE)