Silence warnings that could occur when sound is disabled

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2013-11-19 01:09:19 +00:00
parent fc37766a6f
commit 685589a19c

View File

@ -18,6 +18,7 @@
#include "audio/sfx_buffer.hpp"
#include "audio/sfx_manager.hpp"
#include "config/user_config.hpp"
#include "io/file_manager.hpp"
#include "utils/constants.hpp"
@ -76,6 +77,8 @@ SFXBuffer::SFXBuffer(const std::string& file,
bool SFXBuffer::load()
{
if (UserConfigParams::m_sfx == false) return false;
#if HAVE_OGGVORBIS
if (m_loaded) return false;