diff options
author | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-10-20 22:14:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 22:14:23 +0200 |
commit | f2c03a77f0f2467720be353b50d7dfd62469ba5b (patch) | |
tree | 6e2c4800a869d67ab0292971560288b4458f8ab4 | |
parent | bc1b84cbbb3868edfe2e1acdb2ed0a1f7fafad02 (diff) | |
download | openttd-f2c03a77f0f2467720be353b50d7dfd62469ba5b.tar.xz |
Change: Don't store not to be activated newGRFs in savegames (#9627)
-rw-r--r-- | src/saveload/newgrf_sl.cpp | 2 |
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); } |