Skip to content

Commit

Permalink
fix segv
Browse files Browse the repository at this point in the history
  • Loading branch information
yamader committed Jan 29, 2024
1 parent 10cd6ea commit fb717c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/core/media/Player.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Player {
}

~this(){
if(chan != -1) Mix_HaltChannel(chan);
if(chan != -1 && ctx.running) Mix_HaltChannel(chan);
chan = -1;
}

Expand Down

0 comments on commit fb717c0

Please sign in to comment.