coghq: fix another cj crash

This commit is contained in:
John Cote 2020-01-11 01:05:30 -05:00
parent 747fff520c
commit f3b8669ed5

View file

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