diff options
author | rubidium <rubidium@openttd.org> | 2009-03-12 20:43:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-12 20:43:03 +0000 |
commit | af18469455ff19d223ba7e7114f42041fb35aab7 (patch) | |
tree | 96379daf1412be72240ca56ae10f019514f58c4e /src | |
parent | 5c40b7235cf9b9b643bf53366a9188a22913b9c9 (diff) | |
download | openttd-af18469455ff19d223ba7e7114f42041fb35aab7.tar.xz |
(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.
Diffstat (limited to 'src')
-rw-r--r-- | src/gfxinit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 { |