Skip to content

Commit

Permalink
undo addChar changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Feb 25, 2024
1 parent 7dc686c commit afaba1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flixel/util/FlxUnicodeUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "")
{
Expand All @@ -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
Expand Down

0 comments on commit afaba1d

Please sign in to comment.