We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d68b18d + 28659bb commit b98b8f2Copy full SHA for b98b8f2
code/ship/ship.cpp
@@ -10360,11 +10360,10 @@ void update_firing_sounds(object* objp, ship* shipp)
10360
end_snd_played = wip->end_firing_snd;
10361
}
10362
10363
- if (wip->loop_firing_snd.isValid()) {
+ if (swp->firing_loop_sounds[i] >= 0) {
10364
obj_snd_delete(objp, swp->firing_loop_sounds[i]);
10365
- swp->firing_loop_sounds[i] = -1;
10366
- } else
10367
+ }
+ swp->firing_loop_sounds[i] = -1;
10368
10369
10370
0 commit comments