Mercurial > hg > openttd
changeset 18895:d0ca24721a85 draft
(svn r23744) -Fix (r23142) [FS#4923]: Check the version of the right GRF.
author | frosch <frosch@openttd.org> |
---|---|
date | Tue, 03 Jan 2012 22:36:35 +0000 |
parents | 45d08c0d06e8 |
children | d49d36426418 |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -992,7 +992,7 @@ /* 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);