summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 36cdadf68..9725d9513 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -6578,7 +6578,7 @@ static void ParamSet(ByteReader *buf)
/* Disable the read GRF if it is a static NewGRF. */
DisableStaticNewGRFInfluencingNonStaticNewGRFs(c);
src1 = 0;
- } else if (file == NULL || (c != NULL && c->status == GCS_DISABLED)) {
+ } else if (file == NULL || c == NULL || c->status == GCS_DISABLED) {
src1 = 0;
} else if (src1 == 0xFE) {
src1 = c->version;