Skip to content

Commit

Permalink
Prevent crash in FlxInputText when switching states (#3243)
Browse files Browse the repository at this point in the history
Prevents null textField access in FlxInputText when switching between states. Resolves #3242.
  • Loading branch information
DigiEggz authored Aug 21, 2024
1 parent 089ff95 commit 0573fe3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flixel/text/FlxInputText.hx
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ class FlxInputText extends FlxText implements IFlxInputText
*/
override function destroy():Void
{
endFocus();
manager.unregisterInputText(this);

FlxDestroyUtil.destroy(onEnter);
Expand Down

0 comments on commit 0573fe3

Please sign in to comment.