From d1f72e47ef9e7e941d2f820641e5d07ba1669572 Mon Sep 17 00:00:00 2001 From: John Cote Date: Tue, 14 Jan 2020 01:47:12 -0500 Subject: [PATCH] coghq: fix another ceo crash --- toontown/coghq/DistributedBanquetTable.py | 2 ++ toontown/suit/DistributedBossbotBoss.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/toontown/coghq/DistributedBanquetTable.py b/toontown/coghq/DistributedBanquetTable.py index fd6f6b7..6b6e9e1 100644 --- a/toontown/coghq/DistributedBanquetTable.py +++ b/toontown/coghq/DistributedBanquetTable.py @@ -297,6 +297,8 @@ class DistributedBanquetTable(DistributedObject.DistributedObject, FSM.FSM, Banq serviceLoc = self.serviceLocs[chairIndex] def foodAttach(self = self, diner = diner): + if not self.serviceLocs[chairIndex].getNumChildren(): + return foodModel = self.serviceLocs[chairIndex].getChild(0) (foodModel.reparentTo(diner.getRightHand()),) (foodModel.setHpr(Point3(0, -94, 0)),) diff --git a/toontown/suit/DistributedBossbotBoss.py b/toontown/suit/DistributedBossbotBoss.py index 6c35aa0..1ea60c6 100644 --- a/toontown/suit/DistributedBossbotBoss.py +++ b/toontown/suit/DistributedBossbotBoss.py @@ -195,7 +195,7 @@ class DistributedBossbotBoss(DistributedBossCog.DistributedBossCog, FSM.FSM): npc.setPickable(0) npc.setPlayerType(NametagGroup.CCNonPlayer) dna = ToonDNA.ToonDNA() - dna.newToonRandom(11237, 'm', 1) + dna.newToonRandom(146392, 'm', 1) dna.head = 'sls' npc.setDNAString(dna.makeNetString()) npc.animFSM.request('neutral')