Skip to content

Commit

Permalink
fix _slice9 == []
Browse files Browse the repository at this point in the history
[] == [] is false, because arrays
i simply changed `_slice9 == []` to `_slice9.length != 4` which would achieve the intended purpose, i think
  • Loading branch information
Nintbros committed Oct 4, 2023
1 parent 719b4f1 commit 176b149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flixel/addons/ui/FlxUI9SliceSprite.hx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class FlxUI9SliceSprite extends FlxUISprite implements IResizable implements IFl
var iw = Std.int(pt.x);
var ih = Std.int(pt.y);

if (_slice9 == null || _slice9 == [])
if (_slice9 == null || _slice9.length != 4)
{
_slice9 = [4, 4, 7, 7];
}
Expand Down

0 comments on commit 176b149

Please sign in to comment.