Skip to content

Commit

Permalink
Merge pull request #6324 from Goober5000/fotg_sound_fix
Browse files Browse the repository at this point in the history
fix deletion of looping sounds
  • Loading branch information
Goober5000 authored Aug 27, 2024
2 parents d68b18d + 28659bb commit b98b8f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions code/ship/ship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10360,11 +10360,10 @@ void update_firing_sounds(object* objp, ship* shipp)
end_snd_played = wip->end_firing_snd;
}

if (wip->loop_firing_snd.isValid()) {
if (swp->firing_loop_sounds[i] >= 0) {
obj_snd_delete(objp, swp->firing_loop_sounds[i]);
swp->firing_loop_sounds[i] = -1;
} else
swp->firing_loop_sounds[i] = -1;
}
swp->firing_loop_sounds[i] = -1;
}
}
}
Expand Down

0 comments on commit b98b8f2

Please sign in to comment.