diff --git a/code/client/snd_mix.c b/code/client/snd_mix.c index a6a48f5b4f..92e9ef2c38 100644 --- a/code/client/snd_mix.c +++ b/code/client/snd_mix.c @@ -176,7 +176,7 @@ void S_TransferPaintBuffer(int endtime, portable_samplepair_t paintbuffer[]) { // general case p = (int *) paintbuffer; count = (endtime - s_paintedtime) * dma.channels; - out_idx = (s_paintedtime * dma.channels) % dma.samples; + out_idx = ((unsigned int)s_paintedtime * dma.channels) % dma.samples; step = 3 - MIN(dma.channels, 2); if ((dma.isfloat) && (dma.samplebits == 32))