summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/newgrf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index f8e7cbe5e..8e1edebe8 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -5685,6 +5685,8 @@ static void ParamSet(ByteReader *buf)
src1 = 0;
} else if (file == NULL || (c != NULL && c->status == GCS_DISABLED)) {
src1 = 0;
+ } else if (src1 == 0xFE) {
+ src1 = c->version;
} else {
src1 = file->GetParam(src1);
}