Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions flixel/FlxGame.hx
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,11 @@ class FlxGame extends Sprite
// we need to clear bitmap cache only after previous state is destroyed, which will reset useCount for FlxGraphic objects
FlxG.bitmap.clearCache();

// sound datas too.
#if FLX_SOUND_SYSTEM
FlxG.sound.clearCache();
#end

// Finally assign and create the new state
_state = _nextState.createInstance();
_state._constructor = _nextState.getConstructor();
Expand Down
Loading
Loading