1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Fix crash at battle end

This commit is contained in:
Tomasz Zieliński 2023-08-10 11:52:31 +02:00
parent 1f9ee6aa38
commit f483f7bb53

View File

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