mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(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:
parent
5c40b7235c
commit
af18469455
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user