aboutsummaryrefslogtreecommitdiffstats
path: root/alc/mixvoice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/mixvoice.cpp')
-rw-r--r--alc/mixvoice.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp
index b1d7500a..06324397 100644
--- a/alc/mixvoice.cpp
+++ b/alc/mixvoice.cpp
@@ -624,6 +624,7 @@ void MixVoice(ALvoice *voice, ALvoice::State vstate, const ALuint SourceID, ALCc
DstBufferSize &= ~3;
}
+ ASSUME(DstBufferSize > 0);
for(ALsizei chan{0};chan < NumChannels;chan++)
{
ALvoice::ChannelData &chandata = voice->mChans[chan];