TINSEL: Fix class initialization

This commit is contained in:
Eugene Sandulenko 2016-06-17 11:49:54 +02:00
parent 9131976ff4
commit 4dc60b525d
2 changed files with 8 additions and 1 deletions

View File

@ -401,7 +401,7 @@ MidiMusicPlayer::MidiMusicPlayer(TinselEngine *vm) {
if (milesAudioEnabled) {
// Discworld 1 (DOS) uses Miles Audio 3
// use our own Miles Audio drivers
//
//
// It seems that there are multiple versions of Discworld 1
//
// Version 1:
@ -639,10 +639,14 @@ PCMMusicPlayer::PCMMusicPlayer() {
_dimmed = false;
_dimmedTinsel = false;
_dimIteration = 0;
_dimmedVolume = 0;
_dimPosition = 0;
_fadeOutVolume = 0;
_fadeOutIteration = 0;
_hScript = _hSegment = 0;
_end = true;
_vm->_mixer->playStream(Audio::Mixer::kMusicSoundType,

View File

@ -823,6 +823,9 @@ TinselEngine::TinselEngine(OSystem *syst, const TinselGameDescription *gameDesc)
_console(0), _sound(0), _midiMusic(0), _pcmMusic(0), _bmv(0) {
_vm = this;
_gameId = 0;
_driver = NULL;
_config = new Config(this);
// Register debug flags