From 88657113d1be362037e9ff026193cf0f0284972a Mon Sep 17 00:00:00 2001 From: George FunBook Date: Wed, 15 May 2024 13:42:57 -0500 Subject: [PATCH] fix docs --- flixel/system/frontEnds/InputFrontEnd.hx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/flixel/system/frontEnds/InputFrontEnd.hx b/flixel/system/frontEnds/InputFrontEnd.hx index c1249e5ccf..170e8bc903 100644 --- a/flixel/system/frontEnds/InputFrontEnd.hx +++ b/flixel/system/frontEnds/InputFrontEnd.hx @@ -49,8 +49,13 @@ class InputFrontEnd public function addUniqueType(input:T):T { // Don't add repeat types - if (!Lambda.exists(list, FlxStringUtil.sameClassName.bind(_, input))) - list.push(input); + for (i in list) + { + if (FlxStringUtil.sameClassName(input, i, false)) + { + return input; + } + } return input; }