From afaba1dc1144d6d2c796f7d340e50d07607791b1 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Sun, 25 Feb 2024 15:29:57 -0600 Subject: [PATCH] undo addChar changes --- flixel/util/FlxUnicodeUtil.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flixel/util/FlxUnicodeUtil.hx b/flixel/util/FlxUnicodeUtil.hx index 79a2759d39..acfdf266ea 100644 --- a/flixel/util/FlxUnicodeUtil.hx +++ b/flixel/util/FlxUnicodeUtil.hx @@ -32,7 +32,7 @@ class FlxUnicodeUtil @:dox(hide) @:noCompletion @:deprecated("Use UnicodeString") -abstract UnicodeBuffer(UnicodeString) from UnicodeString from String +abstract UnicodeBuffer(UnicodeString) { public inline function new(s:String = "") { @@ -41,7 +41,7 @@ abstract UnicodeBuffer(UnicodeString) from UnicodeString from String public inline function addChar(c:Int):UnicodeBuffer { - return String.fromCharCode(c); + return new UnicodeBuffer(this + String.fromCharCode(c)); } public inline function toString():String