Fix possible division by zero in S_PaintChannelFrom16_altivec

This commit is contained in:
MAN-AT-ARMS committed 2014-09-09 11:30:23 -04:00
1 parent 494aa4100e
commit dd83cbdc25
1 file changed
+4
+4
View File
@@ -236,6 +236,10 @@ static void S_PaintChannelFrom16_altivec( channel_t *ch, const sfx_t *sc, int co
short *samples;
float ooff, fdata[2], fdiv, fleftvol, frightvol;
if (sc->soundChannels <= 0) {
return;
}
samp = &paintbuffer[ bufferOffset ];
if (ch->doppler) {