summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2018-09-12 08:19:06 +0100
committerIngo von Borstel <github@planetmaker.de>2018-09-12 09:19:06 +0200
commitca5b68145ad6f9631b72635fdfa0ab3a1937b707 (patch)
tree2531916d3d9c6e79c3d05a8511c167cf3d31597c /src/music
parent94961732a3667f9b2f38da4be5209b1259db6733 (diff)
downloadopenttd-ca5b68145ad6f9631b72635fdfa0ab3a1937b707.tar.xz
Fix #6839: OLD_GM_DIR midi search path got lost (#6900)
Diffstat (limited to 'src/music')
-rw-r--r--src/music/midifile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/music/midifile.cpp b/src/music/midifile.cpp
index 931be181a..a2455358f 100644
--- a/src/music/midifile.cpp
+++ b/src/music/midifile.cpp
@@ -1013,6 +1013,8 @@ std::string MidiFile::GetSMFFile(const MusicSongInfo &song)
char filename[MAX_PATH];
if (FioFindFullPath(filename, lastof(filename), Subdirectory::BASESET_DIR, song.filename)) {
return std::string(filename);
+ } else if (FioFindFullPath(filename, lastof(filename), Subdirectory::OLD_GM_DIR, song.filename)) {
+ return std::string(filename);
} else {
return std::string();
}