summaryrefslogtreecommitdiff
path: root/src/gfxinit.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-23 09:09:12 +0000
committerrubidium <rubidium@openttd.org>2009-01-23 09:09:12 +0000
commit8ecdbf216dbd0917ddb9eed0466864c617373040 (patch)
tree0023f2f7708d6e5fecdbda20b62747377408468f /src/gfxinit.cpp
parent6f5078b555204b6d37a524afb290de6d70b09d31 (diff)
downloadopenttd-8ecdbf216dbd0917ddb9eed0466864c617373040.tar.xz
(svn r15218) -Fix: base graphics detection did mark too much as duplicate
Diffstat (limited to 'src/gfxinit.cpp')
-rw-r--r--src/gfxinit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp
index c23f0a816..f0c529d4d 100644
--- a/src/gfxinit.cpp
+++ b/src/gfxinit.cpp
@@ -469,7 +469,7 @@ bool OBGFileScanner::AddFile(const char *filename, size_t basepath_length)
if (FillGraphicsSetDetails(graphics, ini, path)) {
bool duplicate = false;
for (const GraphicsSet *c = _available_graphics_sets; !duplicate && c != NULL; c = c->next) {
- duplicate = (strcmp(c->name, graphics->name) == 0) || (c->shortname == graphics->shortname && c->version == graphics->version);
+ duplicate = (strcmp(c->name, graphics->name) == 0 || c->shortname == graphics->shortname) && c->version == graphics->version;
}
if (duplicate) {
delete graphics;