diff options
author | peter1138 <peter1138@openttd.org> | 2008-06-03 09:58:13 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-06-03 09:58:13 +0000 |
commit | 7b75cee8762c49e296ebf6cf59d3249cef4d45af (patch) | |
tree | e11e82d07fca657ab88c3ee1bb1c936a6ab6b283 /src | |
parent | 1ddfdda02c4c1dea425b026bc0d273daacade2ee (diff) | |
download | openttd-7b75cee8762c49e296ebf6cf59d3249cef4d45af.tar.xz |
(svn r13371) -Fix (r4510 ... r12924): Engine array size is not related to the ID used when setting a vehicle's name (it is vehicle type specific). Instead just test for a generic string.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index a3de39f51..6576e2185 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3302,7 +3302,7 @@ static void FeatureNewName(byte *buf, size_t len) case GSF_ROAD: case GSF_SHIP: case GSF_AIRCRAFT: - if (id < GetEnginePoolSize()) { + if (!generic) { Engine *e = GetNewEngine(_cur_grffile, (VehicleType)feature, id); StringID string = AddGRFString(_cur_grffile->grfid, e->index, lang, new_scheme, name, e->info.string_id); e->info.string_id = string; |