diff options
author | frosch <frosch@openttd.org> | 2012-01-03 22:36:35 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-01-03 22:36:35 +0000 |
commit | 7ff95b9e97707b192754f1bdea93cc4efac010f1 (patch) | |
tree | 4ef44e62efb783f9dd9574c6d65a3af9d3b6c4ac /src | |
parent | f5ebbc96e993e65154aea03f2ee67bb440c83e75 (diff) | |
download | openttd-7ff95b9e97707b192754f1bdea93cc4efac010f1.tar.xz |
(svn r23744) -Fix (r23142) [FS#4923]: Check the version of the right GRF.
Diffstat (limited to 'src')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index a5964e927..e17521ad6 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -992,7 +992,7 @@ static CommandCost CheckTrainAttachment(Train *t) /* A failing callback means everything is okay */ StringID error = STR_NULL; - if (t->GetGRF()->grf_version < 8) { + if (head->GetGRF()->grf_version < 8) { if (callback == 0xFD) error = STR_ERROR_INCOMPATIBLE_RAIL_TYPES; if (callback < 0xFD) error = GetGRFStringID(head->GetGRFID(), 0xD000 + callback); if (callback >= 0x100) ErrorUnknownCallbackResult(head->GetGRFID(), CBID_TRAIN_ALLOW_WAGON_ATTACH, callback); |