From 8ecdbf216dbd0917ddb9eed0466864c617373040 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 23 Jan 2009 09:09:12 +0000 Subject: (svn r15218) -Fix: base graphics detection did mark too much as duplicate --- src/gfxinit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf