From 1facdb988c84c9c91dffaafa9a740da8700610f5 Mon Sep 17 00:00:00 2001 From: doitux Date: Mon, 20 Aug 2012 21:55:09 +0200 Subject: [PATCH] initialize sound in constructior --- src/gui/qt/sound/sdlplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/qt/sound/sdlplayer.cpp b/src/gui/qt/sound/sdlplayer.cpp index eded6e33..b758c4f0 100644 --- a/src/gui/qt/sound/sdlplayer.cpp +++ b/src/gui/qt/sound/sdlplayer.cpp @@ -29,7 +29,7 @@ using namespace std; SDLPlayer::SDLPlayer(ConfigFile *c) #ifndef ANDROID - : soundData(NULL), currentChannel(0) , audioEnabled(0), myConfig(c) +: soundData(NULL), currentChannel(0) , audioEnabled(0), myConfig(c), sound(NULL) #endif { myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());