From 8216a0f5c99ea249a9a5810ae3f87c8439edd680 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 12 Mar 2009 20:43:03 +0000 Subject: (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. --- src/gfxinit.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp index c6b725514..9dad75aa3 100644 --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -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 { -- cgit v1.2.3-54-g00ecf