mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-25 12:24:26 -08:00
HotFix: Prevent crashing if a Zone is null with an arrow while a player concedes race time (#4904)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user