From 8a2e5b788da55244addff9eb1e85cc9fe3a2e953 Mon Sep 17 00:00:00 2001 From: John Cote Date: Wed, 8 Jan 2020 20:51:22 -0500 Subject: [PATCH] coghq: fix dept2deptIndex --- toontown/coghq/CogDisguiseGlobals.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toontown/coghq/CogDisguiseGlobals.py b/toontown/coghq/CogDisguiseGlobals.py index ba6fa3f..46838eb 100644 --- a/toontown/coghq/CogDisguiseGlobals.py +++ b/toontown/coghq/CogDisguiseGlobals.py @@ -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