Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ void MilesAudioManager::selectProvider( UnsignedInt providerNdx )
{
providerNdx = getProviderIndex( "Miles Fast 2D Positional Audio" );
}
success = AIL_open_3D_provider( m_provider3D[providerNdx].id ) == 0;
success = providerNdx < m_providerCount && AIL_open_3D_provider( m_provider3D[providerNdx].id ) == 0;

//if (providerNdx < m_providerCount)
//{
Expand All @@ -1676,7 +1676,7 @@ void MilesAudioManager::selectProvider( UnsignedInt providerNdx )
m_selectedProvider = PROVIDER_ERROR;
// try to select a failsafe
providerNdx = getProviderIndex( "Miles Fast 2D Positional Audio" );
success = AIL_open_3D_provider( m_provider3D[providerNdx].id ) == 0;
success = providerNdx < m_providerCount && AIL_open_3D_provider( m_provider3D[providerNdx].id ) == 0;
}

if ( success )
Expand Down