diff options
author | rubidium <rubidium@openttd.org> | 2010-07-09 17:47:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-07-09 17:47:52 +0000 |
commit | 24fe1f41a5d778b55026b2ecd0fc7ca74f9e8bf8 (patch) | |
tree | ed9a34fce8401d410d6177a9ea9602cf1364d6b1 /src | |
parent | 03b079f8564def86cffb22aab08bbd84b4836e7a (diff) | |
download | openttd-24fe1f41a5d778b55026b2ecd0fc7ca74f9e8bf8.tar.xz |
(svn r20102) -Fix: OpenMSX music sounds odd after certain songs are played. Likely because the instruments weren't reset properly
Diffstat (limited to 'src')
-rw-r--r-- | src/music/dmusic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/music/dmusic.cpp b/src/music/dmusic.cpp index cb255e7c0..21eb47b44 100644 --- a/src/music/dmusic.cpp +++ b/src/music/dmusic.cpp @@ -165,8 +165,8 @@ void MusicDriver_DMusic::PlaySong(const char *filename) /* release the existing segment if we have any */ if (segment != NULL) { - segment->Release(); - segment = NULL; + this->Stop(); + if (this->Start(NULL) != NULL) return; } /* make a new segment */ |