Adjust error in case we support more listeners

#3686
This commit is contained in:
Wojtek Figat
2026-02-03 17:48:30 +01:00
parent f1509bab28
commit 217701ae05

View File

@@ -41,7 +41,10 @@ void AudioListener::OnEnable()
ASSERT(!Audio::Listeners.Contains(this));
if (Audio::Listeners.Count() >= AUDIO_MAX_LISTENERS)
{
LOG(Warning, "There is more than one Audio Listener active. Please make sure only exactly one is active at any given time.");
if IF_CONSTEXPR (AUDIO_MAX_LISTENERS == 1)
LOG(Warning, "There is more than one Audio Listener active. Please make sure only exactly one is active at any given time.");
else
LOG(Warning, "Too many Audio Listener active.");
}
else
{