diff --git a/src/sound/sound_server.cpp b/src/sound/sound_server.cpp index fc30b54cf..3f6128c0d 100644 --- a/src/sound/sound_server.cpp +++ b/src/sound/sound_server.cpp @@ -316,13 +316,12 @@ local int HowManyFree(void) local int KeepRequest(SoundRequest* sr) { //FIXME: take fight flag into account int channel; + const SoundChannel* theChannel; if (sr->Sound == NO_SOUND) { return 0; } - const SoundChannel* theChannel; - // slow but working solution: we look for the source in the channels theChannel = Channels; for (channel = 0; channel < MaxChannels; ++channel) {