summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-09-26 11:30:14 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-09-26 11:30:14 +0200
commit375c7df00f4b95ca52906cf337fad0eefd18d0da (patch)
tree817249f1c2a2d1b0fe17c5e63cd9ef2aa9d0e483 /src/audio
parentupdate lib (diff)
parentFixes from miami (diff)
downloadre3-375c7df00f4b95ca52906cf337fad0eefd18d0da.tar
re3-375c7df00f4b95ca52906cf337fad0eefd18d0da.tar.gz
re3-375c7df00f4b95ca52906cf337fad0eefd18d0da.tar.bz2
re3-375c7df00f4b95ca52906cf337fad0eefd18d0da.tar.lz
re3-375c7df00f4b95ca52906cf337fad0eefd18d0da.tar.xz
re3-375c7df00f4b95ca52906cf337fad0eefd18d0da.tar.zst
re3-375c7df00f4b95ca52906cf337fad0eefd18d0da.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/sampman_oal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp
index 5e4b5aba..a8056c03 100644
--- a/src/audio/sampman_oal.cpp
+++ b/src/audio/sampman_oal.cpp
@@ -450,9 +450,9 @@ int8 cSampleManager::GetCurrent3DProviderIndex(void)
int8 cSampleManager::SetCurrent3DProvider(uint8 nProvider)
{
- ASSERT( nProvider < m_nNumberOfProviders );
if (nProvider >= m_nNumberOfProviders)
nProvider = 0;
+ ASSERT( nProvider < m_nNumberOfProviders );
int savedprovider = curprovider;
if ( nProvider < m_nNumberOfProviders )