summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-05-21 13:05:48 +0000
committerfrosch <frosch@openttd.org>2009-05-21 13:05:48 +0000
commit82532ac12e6c38a3816a8267f83ac2df142ac67b (patch)
treef8d4df5fea42f0810ac2959d33f6b03b95022306
parentb801d801b56b48cc072aca21ab85e4d52b7d22ab (diff)
downloadopenttd-82532ac12e6c38a3816a8267f83ac2df142ac67b.tar.xz
(svn r16366) -Fix: Use a valid StringID as fall-back when undefined generic newgrf strings of vehicles are requested.
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index b39635342..06aafc09d 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -3471,7 +3471,7 @@ static void FeatureNewName(byte *buf, size_t len)
StringID string = AddGRFString(_cur_grffile->grfid, e->index, lang, new_scheme, name, e->info.string_id);
e->info.string_id = string;
} else {
- AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, id);
+ AddGRFString(_cur_grffile->grfid, id, lang, new_scheme, name, STR_UNDEFINED);
}
break;