coghq: fix another ceo crash

This commit is contained in:
John Cote 2020-01-14 01:25:51 -05:00
parent db42556289
commit c393377ae4

View file

@ -717,7 +717,7 @@ class DistributedBossbotBossAI(DistributedBossCogAI.DistributedBossCogAI, FSM.FS
toonLevel = toon.getNumPromotions(self.dept)
totalCogSuitLevels += toonLevel
totalNumToons += 1
if toon.cogLevels > highestCogSuitLevel:
if toonLevel > highestCogSuitLevel:
highestCogSuitLevel = toonLevel
if not totalNumToons: