Fix minigame speedchat crash

This commit is contained in:
DenialMC 2015-05-16 12:40:45 +03:00
parent bd7488dd49
commit 87a77a8740

View file

@ -37,6 +37,8 @@ class ARGManager(DistributedObjectGlobal):
def setupPortableHoleEvent(self): def setupPortableHoleEvent(self):
def phraseSaid(phraseId): def phraseSaid(phraseId):
if not hasattr(base.cr.playGame, 'place'):
return
position, speedchatIndex, destination = Hood2Details.get(base.cr.playGame.getPlace().getZoneId(), [None, None, None]) position, speedchatIndex, destination = Hood2Details.get(base.cr.playGame.getPlace().getZoneId(), [None, None, None])
if not position or not speedchatIndex or not destination: if not position or not speedchatIndex or not destination:
return return