summaryrefslogtreecommitdiffstats
path: root/src/audio/sampman_oal.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-08-30 23:07:38 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-08-30 23:07:38 +0200
commit4ffca8954fb8b95142de7d32821f4b2dae79a553 (patch)
tree55f8b82c25d60628ae1361c6c87519f2f4023a1c /src/audio/sampman_oal.cpp
parentscript inaccuracy (diff)
parentMerge pull request #697 from erorcun/miami (diff)
downloadre3-4ffca8954fb8b95142de7d32821f4b2dae79a553.tar
re3-4ffca8954fb8b95142de7d32821f4b2dae79a553.tar.gz
re3-4ffca8954fb8b95142de7d32821f4b2dae79a553.tar.bz2
re3-4ffca8954fb8b95142de7d32821f4b2dae79a553.tar.lz
re3-4ffca8954fb8b95142de7d32821f4b2dae79a553.tar.xz
re3-4ffca8954fb8b95142de7d32821f4b2dae79a553.tar.zst
re3-4ffca8954fb8b95142de7d32821f4b2dae79a553.zip
Diffstat (limited to 'src/audio/sampman_oal.cpp')
-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 ffa4c456..1e9f60fd 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 )