summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-23 08:51:46 +0000
committerrubidium <rubidium@openttd.org>2009-12-23 08:51:46 +0000
commit6e97343df64d2dafd1a7b5c1327b40b5abe297b9 (patch)
tree775ed60d81208bf83144c297b1deab74f01a3e24 /src
parentc93d873638bc87d40ed047d2cc0b33d8090468e2 (diff)
downloadopenttd-6e97343df64d2dafd1a7b5c1327b40b5abe297b9.tar.xz
(svn r18610) -Codechange: don't consider a music set at all for 'best' set when it's missing files
Diffstat (limited to 'src')
-rw-r--r--src/music.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/music.cpp b/src/music.cpp
index 813bc5a16..f7e8bbc1c 100644
--- a/src/music.cpp
+++ b/src/music.cpp
@@ -43,6 +43,8 @@ template <class Tbase_set>
const Tbase_set *best = NULL;
for (const Tbase_set *c = BaseMedia<Tbase_set>::available_sets; c != NULL; c = c->next) {
+ if (c->GetNumMissing() != 0) continue;
+
if (best == NULL ||
best->valid_files < c->valid_files ||
(best->valid_files == c->valid_files &&