diff options
-rw-r--r-- | al/source.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/source.cpp b/al/source.cpp index 63212bee..76f6c54b 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -2697,7 +2697,7 @@ START_API_FUNC if(inc_amount > allvoices.size() - voicelist.size()) { /* Increase the number of voices to handle the request. */ - context->allocVoices(inc_amount > (allvoices.size() - voicelist.size())); + context->allocVoices(inc_amount - (allvoices.size() - voicelist.size())); } context->mActiveVoiceCount.fetch_add(inc_amount, std::memory_order_release); voicelist = context->getVoicesSpan(); |