From d2f3ae252ab6dc570c963b05cc6da7578ff101ff Mon Sep 17 00:00:00 2001 From: George Kurelic Date: Wed, 15 May 2024 15:46:47 -0500 Subject: [PATCH] fix docs (#3139) * fix docs * fix typo --- flixel/system/frontEnds/InputFrontEnd.hx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/flixel/system/frontEnds/InputFrontEnd.hx b/flixel/system/frontEnds/InputFrontEnd.hx index c1249e5ccf..5a3e0e60b4 100644 --- a/flixel/system/frontEnds/InputFrontEnd.hx +++ b/flixel/system/frontEnds/InputFrontEnd.hx @@ -49,9 +49,15 @@ 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; + } + } + list.push(input); return input; }