Mercurial > hg > openttd
changeset 11344:699a0f6a1407 draft
(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.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 12 Mar 2009 20:43:03 +0000 |
parents | 06d999f0ca89 |
children | c78d659d5029 |
files | src/gfxinit.cpp |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -467,8 +467,10 @@ 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 {