doomsday: Fix a crash when no spawn points are available
This commit is contained in:
parent
f554b7f312
commit
5325d79255
1 changed files with 3 additions and 0 deletions
|
@ -335,6 +335,9 @@ class DistributedSafezoneInvasionAI(DistributedObjectAI, FSM):
|
|||
'''
|
||||
def spawnOne(self, suitType, levelOffset=0):
|
||||
# Pick a spawnpoint:
|
||||
if not self.spawnPoints:
|
||||
return
|
||||
|
||||
pointId = random.choice(self.spawnPoints)
|
||||
self.spawnPoints.remove(pointId)
|
||||
|
||||
|
|
Loading…
Reference in a new issue