initialize sound in constructior

This commit is contained in:
doitux
2012-08-20 21:55:09 +02:00
parent 35c0216f78
commit 1facdb988c
+1 -1
View File
@@ -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());