aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sound_towns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/sound_towns.cpp')
-rw-r--r--engines/kyra/sound_towns.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp
index aa8de56d1a..9fe502e2c2 100644
--- a/engines/kyra/sound_towns.cpp
+++ b/engines/kyra/sound_towns.cpp
@@ -4172,10 +4172,13 @@ void SoundTownsPC98_v2::playTrack(uint8 track) {
beginFadeOut();
char musicfile[13];
- if (fileListLen() == 1)
+ if (fileListLen() == 1) {
sprintf(musicfile, fileListEntry(0), track);
- else
+ } else {
strcpy(musicfile, fileListEntry(track));
+ if (!musicfile[0])
+ return;
+ }
delete[] _musicTrackData;
_musicTrackData = _vm->resource()->fileData(musicfile, 0);