suit: Fix crash when reclaiming old buildings Fixes #42
This commit is contained in:
parent
5f793922c7
commit
84a0f214b6
1 changed files with 1 additions and 1 deletions
|
@ -633,7 +633,7 @@ class DistributedSuitPlannerAI(DistributedObjectAI.DistributedObjectAI, SuitPlan
|
||||||
if oldestAge > timeout:
|
if oldestAge > timeout:
|
||||||
self.notify.info('Street %d has %d buildings; reclaiming %0.2f-hour-old building.' % (self.zoneId, len(suitBuildings), oldestAge / 3600.0))
|
self.notify.info('Street %d has %d buildings; reclaiming %0.2f-hour-old building.' % (self.zoneId, len(suitBuildings), oldestAge / 3600.0))
|
||||||
oldest.b_setVictorList([0, 0, 0, 0])
|
oldest.b_setVictorList([0, 0, 0, 0])
|
||||||
oldest.updateSavedBy(None)
|
oldest.updateSavedBy([])
|
||||||
oldest.toonTakeOver()
|
oldest.toonTakeOver()
|
||||||
self.__waitForNextUpkeep()
|
self.__waitForNextUpkeep()
|
||||||
return Task.done
|
return Task.done
|
||||||
|
|
Loading…
Reference in a new issue