summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoïc Guilloux <glx22@users.noreply.github.com>2021-10-20 22:14:23 +0200
committerGitHub <noreply@github.com>2021-10-20 22:14:23 +0200
commitf2c03a77f0f2467720be353b50d7dfd62469ba5b (patch)
tree6e2c4800a869d67ab0292971560288b4458f8ab4 /src
parentbc1b84cbbb3868edfe2e1acdb2ed0a1f7fafad02 (diff)
downloadopenttd-f2c03a77f0f2467720be353b50d7dfd62469ba5b.tar.xz
Change: Don't store not to be activated newGRFs in savegames (#9627)
Diffstat (limited to 'src')
-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 510ffc156..5dde97132 100644
--- a/src/saveload/newgrf_sl.cpp
+++ b/src/saveload/newgrf_sl.cpp
@@ -81,7 +81,7 @@ struct NGRFChunkHandler : ChunkHandler {
int index = 0;
for (GRFConfig *c = _grfconfig; c != nullptr; c = c->next) {
- if (HasBit(c->flags, GCF_STATIC)) continue;
+ if (HasBit(c->flags, GCF_STATIC) || HasBit(c->flags, GCF_INIT_ONLY)) continue;
SlSetArrayIndex(index++);
SlObject(c, _grfconfig_desc);
}