summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-31 09:36:09 +0000
committerrubidium <rubidium@openttd.org>2010-07-31 09:36:09 +0000
commitf7794e313f993bbb8394bfc6c27f6cd00fc534a0 (patch)
treeb47ce8754e0390f5b2769210ded01d440674d79d /src/saveload
parent75c4a2d2fb4c400eb2eef6e1e1fa1bf3573c5be0 (diff)
downloadopenttd-f7794e313f993bbb8394bfc6c27f6cd00fc534a0.tar.xz
(svn r20252) -Codechange: deduplicate logic for setting a suitable (initial) palette for NewGRFs
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/newgrf_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/newgrf_sl.cpp b/src/saveload/newgrf_sl.cpp
index 735306c3c..f132bc03f 100644
--- a/src/saveload/newgrf_sl.cpp
+++ b/src/saveload/newgrf_sl.cpp
@@ -47,7 +47,7 @@ static void Load_NGRF_common(GRFConfig *&grfconfig)
while (SlIterateArray() != -1) {
GRFConfig *c = new GRFConfig();
SlObject(c, _grfconfig_desc);
- if (CheckSavegameVersion(101)) c->windows_paletted = (_use_palette == PAL_WINDOWS);
+ if (CheckSavegameVersion(101)) c->SetSuitablePalette();
AppendToGRFConfigList(&grfconfig, c);
}
}