HotFix: Prevent crashing if a Zone is null with an arrow while a player concedes race time (#4904)
This commit is contained in:
parent
ee674cb0cf
commit
2bd0e58354
1 changed files with 1 additions and 1 deletions
|
@ -571,7 +571,7 @@ void Server_Game::removeArrowsRelatedToPlayer(GameEventStorage &ges, Server_Play
|
|||
toDelete.append(a);
|
||||
|
||||
// Don't use else here! It has to happen regardless of whether targetCard == 0.
|
||||
if (a->getStartCard()->getZone()->getPlayer() == player)
|
||||
if (a->getStartCard()->getZone() && a->getStartCard()->getZone()->getPlayer() == player)
|
||||
toDelete.append(a);
|
||||
}
|
||||
for (int i = 0; i < toDelete.size(); ++i) {
|
||||
|
|
Loading…
Reference in a new issue