Fix glove NPC crash

This commit is contained in:
Daniel 2015-03-09 01:06:02 +02:00
parent d364b587f4
commit 9d49b038e5

View file

@ -176,10 +176,10 @@ class DistributedNPCGlove(DistributedNPCToonBase):
self.sendUpdate('requestTransformation', [color])
self.reset()
def leave(self):
def leave(self, task=None):
self.setChatAbsolute('', CFSpeech)
self.setChatAbsolute(TTLocalizer.GloveByeMessage, CFSpeech|CFTimeout)
self.reset()
self.reset(task)
def reset(self, task=None):
self.fsm.request('off')