diff options
author | Max Horn | 2007-01-26 11:47:26 +0000 |
---|---|---|
committer | Max Horn | 2007-01-26 11:47:26 +0000 |
commit | 516cd07d108f838d15d94fd4d489596cc0382263 (patch) | |
tree | 80e3e60f89fd1540a82a7271306f774ed85ca3b6 /sound/mods/infogrames.cpp | |
parent | dd5b1e41fba4757a79d6e162217a7ebdb0032734 (diff) | |
download | scummvm-rg350-516cd07d108f838d15d94fd4d489596cc0382263.tar.gz scummvm-rg350-516cd07d108f838d15d94fd4d489596cc0382263.tar.bz2 scummvm-rg350-516cd07d108f838d15d94fd4d489596cc0382263.zip |
Some cleanup / code formatting changes, and added some FIXME comments
svn-id: r25199
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(); + } } } |