guard ms from empty arguments
This commit is contained in:
parent
6a5788d31d
commit
1aa946aba4
@ -3787,6 +3787,7 @@ class GUI(QtGui.QWidget):
|
|||||||
|
|
||||||
ao2Duration = ini.read_ini_int(BASE_PATH + "characters/" + fChar + "/char.ini", "time", fPreanim, -1)
|
ao2Duration = ini.read_ini_int(BASE_PATH + "characters/" + fChar + "/char.ini", "time", fPreanim, -1)
|
||||||
textDelay = ini.read_ini_int(BASE_PATH + "characters/" + fChar + "/char.ini", "textdelay", fPreanim, -1)
|
textDelay = ini.read_ini_int(BASE_PATH + "characters/" + fChar + "/char.ini", "textdelay", fPreanim, -1)
|
||||||
|
if not self.mChatMessage[SFX_DELAY]: self.mChatMessage[SFX_DELAY] = 0
|
||||||
sfxDelay = int(self.mChatMessage[SFX_DELAY]) * 60
|
sfxDelay = int(self.mChatMessage[SFX_DELAY]) * 60
|
||||||
|
|
||||||
if sfxDelay > 0:
|
if sfxDelay > 0:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user