From f2c03a77f0f2467720be353b50d7dfd62469ba5b Mon Sep 17 00:00:00 2001 From: Loïc Guilloux Date: Wed, 20 Oct 2021 22:14:23 +0200 Subject: Change: Don't store not to be activated newGRFs in savegames (#9627) --- src/saveload/newgrf_sl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3-70-g09d2