mirror of https://github.com/OpenTTD/OpenTTD
Change: Don't store not to be activated newGRFs in savegames (#9627)
parent
61479fdcdc
commit
09d881d579
|
@ -81,7 +81,7 @@ struct NGRFChunkHandler : ChunkHandler {
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
||||||
for (GRFConfig *c = _grfconfig; c != nullptr; c = c->next) {
|
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++);
|
SlSetArrayIndex(index++);
|
||||||
SlObject(c, _grfconfig_desc);
|
SlObject(c, _grfconfig_desc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue