Mercurial > hg > openttd
diff src/gfxinit.cpp @ 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 | 2770c4f89a05 |
children | 86fca539ec7a |
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 {