summaryrefslogtreecommitdiff
path: root/src
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
commit675303d656404f10289ec72467256d0fa9f776e2 (patch)
tree0023f2f7708d6e5fecdbda20b62747377408468f /src
parentfc5022d76ee23575d6b4cfb20e5f3a3aca6fd285 (diff)
downloadopenttd-675303d656404f10289ec72467256d0fa9f776e2.tar.xz
(svn r15218) -Fix: base graphics detection did mark too much as duplicate
Diffstat (limited to 'src')
-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;