From 36d79b4bb25b16694ba22074713991a6093752da Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Sat, 11 Nov 2023 20:42:56 +0100 Subject: [PATCH] Hasten istype --- game/scripts/utility/common_functions.rpy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/scripts/utility/common_functions.rpy b/game/scripts/utility/common_functions.rpy index cfe66436..ec611e3c 100644 --- a/game/scripts/utility/common_functions.rpy +++ b/game/scripts/utility/common_functions.rpy @@ -186,9 +186,9 @@ init python early: return s1.replace(filter, "") == s2.replace(filter, "") def istype(inst, clss): - if not isinstance(clss, (list, tuple, set)): - clss = (clss,) - return type(inst) in clss + if isinstance(clss, (list, tuple, set)): + return type(inst) in clss + return type(inst) is clss class IntLike(python_object): # Does not support rollback