Fix a crash that happens with a too long uptime.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2701 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-10-03 09:09:08 +00:00
parent f99a03524a
commit 93ea2511c3

View file

@ -54,15 +54,15 @@ static int chnskip[6][6] =
void S_TransferPaintBuffer(soundcardinfo_t *sc, int endtime)
{
int startidx, out_idx;
int count;
int outlimit;
int *p;
int *skip;
int *cskip;
int val;
int snd_vol;
short *pbuf;
unsigned int startidx, out_idx;
unsigned int count;
unsigned int outlimit;
int *p;
int *skip;
int *cskip;
int val;
int snd_vol;
short *pbuf;
p = (int *) paintbuffer;
skip = paintskip[sc->sn.numchannels-1];