initialize sound in constructior

This commit is contained in:
doitux committed 2012-08-20 21:55:09 +02:00
1 parent 35c0216f78
commit 1facdb988c
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ using namespace std;
SDLPlayer::SDLPlayer(ConfigFile *c) SDLPlayer::SDLPlayer(ConfigFile *c)
#ifndef ANDROID #ifndef ANDROID
: soundData(NULL), currentChannel(0) , audioEnabled(0), myConfig(c) : soundData(NULL), currentChannel(0) , audioEnabled(0), myConfig(c), sound(NULL)
#endif #endif
{ {
myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str()); myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());