From d18c74e47cbe449b5644f5ffc1f674514361f146 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Tue, 9 May 2006 19:30:57 +0000 Subject: [PATCH] forgot this git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2261 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/snd_mix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/snd_mix.c b/engine/client/snd_mix.c index 1bd54156e..45fa89413 100644 --- a/engine/client/snd_mix.c +++ b/engine/client/snd_mix.c @@ -117,7 +117,7 @@ void S_TransferPaintBuffer(soundcardinfo_t *sc, int endtime) else if (val < (short)0x8000) val = (short)0x8000; out[out_idx] = (val>>8) + 128; - out_idx = (out_idx + 1) & outlimit; + out_idx = (out_idx + 1) % outlimit; skip += *cskip; cskip += *cskip; }