initialize sound in constructior
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user