From 83633b734f1c4a4f9b7e0a0e4bacfb52502a6dd9 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 12 Mar 2015 22:07:41 +0200 Subject: [PATCH] Fix Zach's crash --- toontown/suit/DistributedSuit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toontown/suit/DistributedSuit.py b/toontown/suit/DistributedSuit.py index d7fc7947..8874b60e 100644 --- a/toontown/suit/DistributedSuit.py +++ b/toontown/suit/DistributedSuit.py @@ -214,6 +214,8 @@ class DistributedSuit(DistributedSuitBase.DistributedSuitBase, DelayDeletable): def setPathEndpoints(self, start, end, minPathLen, maxPathLen): if self.pathEndpointStart == start and self.pathEndpointEnd == end and self.minPathLen == minPathLen and self.maxPathLen == maxPathLen and self.path != None: return + if self.pathEndpointStart not in self.sp.pointIndexes or self.pathEndpointEnd not in self.sp.pointIndexes: + return self.pathEndpointStart = start self.pathEndpointEnd = end self.minPathLen = minPathLen