rename clamp macro to Clamp to fix compilation with g++11
This commit is contained in:
@@ -321,7 +321,7 @@ cAudioManager::Get3DProviderName(uint8 id) const
|
||||
if (!m_bIsInitialised)
|
||||
return nil;
|
||||
#ifdef AUDIO_OAL
|
||||
id = clamp(id, 0, SampleManager.GetNum3DProvidersAvailable() - 1);
|
||||
id = Clamp(id, 0, SampleManager.GetNum3DProvidersAvailable() - 1);
|
||||
#else
|
||||
// We don't want that either since it will crash the game, but skipping for now
|
||||
if (id >= SampleManager.GetNum3DProvidersAvailable())
|
||||
|
||||
Reference in New Issue
Block a user