Skip to content

Commit

Permalink
Update Hscript.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Dec 26, 2024
1 parent 58016eb commit d9be4b6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/modding/Hscript.hx
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,13 @@ class Hscript extends FlxBasic {
setVariable('FlxTimer', FlxTimer);
setVariable('FlxTween', FlxTween);
setVariable('FlxTypedGroup', FlxTypedGroup);
setVariable('createTypedGroup', function() {
return new FlxTypedGroup<Dynamic>();
setVariable('createTypedGroup', function(?variable) {
variable = new FlxTypedGroup<Dynamic>();
return variable;
});
setVariable('createSpriteGroup', function(?variable) {
variable = new FlxSpriteGroup<Dynamic>();
return variable;
});

// State Stuff
Expand Down

0 comments on commit d9be4b6

Please sign in to comment.