aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/client/snd_openal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c
index 85bc6a3..d375479 100644
--- a/code/client/snd_openal.c
+++ b/code/client/snd_openal.c
@@ -138,7 +138,7 @@ static sfxHandle_t S_AL_BufferFindFree( void )
// Got one
if(knownSfx[i].filename[0] == '\0')
{
- if(i > numSfx)
+ if(i >= numSfx)
numSfx = i + 1;
return i;
}