# HG changeset patch # User rubidium # Date 2009-01-23 09:09:12 # Node ID 47e6562a16ebe88bdc680e88fc8e4c57f9c27274 # Parent 44dc378506b3a5dbf62590bf0e2ddda1117660d5 (svn r15218) -Fix: base graphics detection did mark too much as duplicate diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -469,7 +469,7 @@ bool OBGFileScanner::AddFile(const char 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;