Skip to content

Commit

Permalink
use version()
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Oct 11, 2023
1 parent be22ec2 commit 1a25563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flixel/addons/util/FlxFSM.hx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class FlxFSM<T> implements IFlxDestroyable

if (newName != null && !pools.exists(newName))
{
#if (flixel < "5.4")
#if (flixel < version("5.4.0"))
final newStateConstructor = newStateClass;
#else
final newStateConstructor = ()->Type.createInstance(newStateClass, []);
Expand Down

0 comments on commit 1a25563

Please sign in to comment.