coghq: fix dept2deptIndex

This commit is contained in:
John Cote 2020-01-08 20:51:22 -05:00
parent 77548ed278
commit 8a2e5b788d

View file

@ -1,5 +1,4 @@
from toontown.suit import SuitDNA
import types
from toontown.toonbase import TTLocalizer
from direct.showbase import PythonUtil
from otp.otpbase import OTPGlobals
@ -516,6 +515,6 @@ def asNumber(bitstring):
def dept2deptIndex(dept):
if type(dept) == bytes:
if type(dept) == str:
dept = SuitDNA.suitDepts.index(dept)
return dept