diff options
-rw-r--r-- | engines/gob/sound/adlib.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/gob/sound/adlib.cpp b/engines/gob/sound/adlib.cpp index 709025c6d5..b55e9fb0c8 100644 --- a/engines/gob/sound/adlib.cpp +++ b/engines/gob/sound/adlib.cpp @@ -53,6 +53,7 @@ AdLib::AdLib(Audio::Mixer &mixer) : _mixer(&mixer) { _needFree = false; _mdySong = false; + _soundMode = 0; _repCount = -1; _samplesTillPoll = 0; @@ -580,6 +581,8 @@ bool AdLib::load(const char *fileName) { if (!song.isOpen()) return false; + _soundMode = 0; + _needFree = true; _dataSize = song.size(); _data = new byte[_dataSize]; @@ -597,6 +600,8 @@ bool AdLib::load(byte *data, uint32 size, int index) { unload(); _repCount = 0; + _soundMode = 0; + _dataSize = size; _data = data; _index = index; |