(svn r15694) -Codechange/feature/fix: invert the order in which base graphics sets are queried making it fairly unlikely that downloaded graphics sets override the original graphics.

This commit is contained in:
rubidium 2009-03-12 20:43:03 +00:00
parent 5c40b7235c
commit af18469455
1 changed files with 4 additions and 2 deletions

View File

@ -467,8 +467,10 @@ bool OBGFileScanner::AddFile(const char *filename, size_t basepath_length)
if (duplicate) {
delete graphics;
} else {
graphics->next = _available_graphics_sets;
_available_graphics_sets = graphics;
GraphicsSet **last = &_available_graphics_sets;
while (*last != NULL) last = &(*last)->next;
*last = graphics;
ret = true;
}
} else {