From f21ab91184cf5b6a97bc5ae62c49ac8ac68a8b05 Mon Sep 17 00:00:00 2001 From: erihel Date: Sun, 2 Feb 2014 02:01:42 +0100 Subject: Changed max channels to fix compilation error --- src/sound/oalsound/alsound.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sound/oalsound/alsound.cpp b/src/sound/oalsound/alsound.cpp index 9ef9341..fab0445 100644 --- a/src/sound/oalsound/alsound.cpp +++ b/src/sound/oalsound/alsound.cpp @@ -20,7 +20,6 @@ #include #include -#include #include @@ -381,7 +380,7 @@ int ALSound::Play(Sound sound, const Math::Vector &pos, float amplitude, float f if (!m_channels[channel]->Play()) { - m_channels_limit = std::min(m_channels.size() - 1, m_channels_limit - 1); + m_channels_limit = m_channels.size() - 1; GetLogger()->Debug("Changing channel limit to %u.\n", m_channels_limit); auto it = m_channels.find(channel); Channel *ch = it->second; -- cgit v1.2.3-1-g7c22