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