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
|
from toontown.suit import SuitDNA
|
||||||
import types
|
|
||||||
from toontown.toonbase import TTLocalizer
|
from toontown.toonbase import TTLocalizer
|
||||||
from direct.showbase import PythonUtil
|
from direct.showbase import PythonUtil
|
||||||
from otp.otpbase import OTPGlobals
|
from otp.otpbase import OTPGlobals
|
||||||
|
@ -516,6 +515,6 @@ def asNumber(bitstring):
|
||||||
|
|
||||||
|
|
||||||
def dept2deptIndex(dept):
|
def dept2deptIndex(dept):
|
||||||
if type(dept) == bytes:
|
if type(dept) == str:
|
||||||
dept = SuitDNA.suitDepts.index(dept)
|
dept = SuitDNA.suitDepts.index(dept)
|
||||||
return dept
|
return dept
|
||||||
|
|
Loading…
Reference in a new issue