Fix some of the things clang --analyze flagged

This commit is contained in:
Tim Angus committed 2013-03-26 16:50:03 +00:00
1 parent 352cd151e0
commit 98360bcd57
34 files changed
+58 -112

No files matched your search

+1 -1
View File
@@ -598,7 +598,7 @@ void S_PaintChannelFromMuLaw( channel_t *ch, sfx_t *sc, int count, int sampleOff
samp[i].left += (data * leftvol)>>8;
samp[i].right += (data * rightvol)>>8;
samples++;
if (samples == (byte *)chunk->sndChunk+(SND_CHUNK_SIZE*2)) {
if (chunk != NULL && samples == (byte *)chunk->sndChunk+(SND_CHUNK_SIZE*2)) {
chunk = chunk->next;
samples = (byte *)chunk->sndChunk;
}