1
0
Fork 0

(svn r15218) -Fix: base graphics detection did mark too much as duplicate

release/0.7
rubidium 2009-01-23 09:09:12 +00:00
parent 6f5078b555
commit 8ecdbf216d
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ bool OBGFileScanner::AddFile(const char *filename, size_t basepath_length)
if (FillGraphicsSetDetails(graphics, ini, path)) { if (FillGraphicsSetDetails(graphics, ini, path)) {
bool duplicate = false; bool duplicate = false;
for (const GraphicsSet *c = _available_graphics_sets; !duplicate && c != NULL; c = c->next) { 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) { if (duplicate) {
delete graphics; delete graphics;