Skip to content

Commit

Permalink
Align the signature of the "recycle()" method to the one of the the "…
Browse files Browse the repository at this point in the history
…underlying" FlxGroup. (#2272)
  • Loading branch information
winterismute authored Oct 12, 2020
1 parent 7c144d5 commit b38c74b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flixel/group/FlxSpriteGroup.hx
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ class FlxTypedSpriteGroup<T:FlxSprite> extends FlxSprite
* (by calling `revive()` on them).
* @return A reference to the object that was created.
*/
public inline function recycle(?ObjectClass:Class<T>, ?ObjectFactory:Void->T, Force:Bool = false):T
public inline function recycle(?ObjectClass:Class<T>, ?ObjectFactory:Void->T, Force:Bool = false, Revive:Bool = true):T
{
return group.recycle(ObjectClass, ObjectFactory, Force);
return group.recycle(ObjectClass, ObjectFactory, Force, Revive);
}

/**
Expand Down

0 comments on commit b38c74b

Please sign in to comment.