From de90ee723264781ab40f42bb77bd9d0d4a01dd2c Mon Sep 17 00:00:00 2001 From: nehalmistry <> Date: Tue, 11 May 2004 00:18:19 +0000 Subject: [PATCH] c89 fixes --- src/sound/sound_server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {