diff options
Diffstat (limited to 'sound/mods/infogrames.cpp')
-rw-r--r-- | sound/mods/infogrames.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/mods/infogrames.cpp b/sound/mods/infogrames.cpp index e5eda6e838..a1eeddf22d 100644 --- a/sound/mods/infogrames.cpp +++ b/sound/mods/infogrames.cpp @@ -236,8 +236,7 @@ bool Infogrames::load(Common::SeekableReadStream &dum) { void Infogrames::unload(void) { stopPlay(); - if (_data) - delete[] _data; + delete[] _data; _data = 0; clearVoices(); @@ -449,9 +448,9 @@ void Infogrames::interrupt() { } else if (_repCount != -1) { _end = true; _playing = false; - } - else + } else { init(); + } } } |