The status variables are set explicitely in the constructor instead through one memset now, to avoid setting the SoundHandle to 0 as well (the first play() would then stop SoundHandle 0, which doesn't strike me as being correct)

svn-id: r25409
This commit is contained in:
Sven Hesse 2007-02-07 16:27:43 +00:00
parent a7475dd590
commit 023591a77a

View File

@ -64,9 +64,13 @@ static const TrackFormat TRACK_FORMATS[] = {
AudioCDManager::AudioCDManager() {
memset(&_cd, 0, sizeof(_cd));
memset(_cachedTracks, 0, sizeof(_cachedTracks));
memset(_trackInfo, 0, sizeof(_trackInfo));
_cd.playing = false;
_cd.track = 0;
_cd.start = 0;
_cd.duration = 0;
_cd.numLoops = 0;
_currentCache = 0;
_mixer = g_system->getMixer();
assert(_mixer);