coghq: fix dept2deptIndex
This commit is contained in:
parent
77548ed278
commit
8a2e5b788d
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue