Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion flixel/addons/weapon/FlxBullet.hx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package flixel.addons.weapon;

import flixel.FlxG;
import flixel.FlxSprite;
import flixel.math.FlxMath;
import flixel.math.FlxRect;
import flixel.util.FlxDestroyUtil;

/**
* @link http://www.photonstorm.com
Expand Down Expand Up @@ -47,4 +47,11 @@ class FlxBullet extends FlxSprite

super.update(elapsed);
}

override public function destroy():Void
{
super.destroy();

bounds = FlxDestroyUtil.put(bounds);
}
}
Loading