Changeset - r4915:c61a65024292
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-10-21 23:51:02
peter1138@openttd.org
(svn r6888) - Fix (r6884): Missed a couple of strecpy()s in newgrf text handling
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
newgrf_text.c
Show inline comments
 
@@ -305,7 +305,7 @@ char *GetGRFString(char *buff, uint16 st
 
	/*Search the list of lang-strings of this stringid for current lang */
 
	for (search_text = _grf_text[stringid].textholder; search_text != NULL; search_text = search_text->next) {
 
		if (search_text->langid == _currentLangID) {
 
			return strecpy(buff, search_text->text, NULL);
 
			return strecpy(buff, search_text->text, last);
 
		}
 

	
 
		/* If the current string is English or American, set it as the
 
@@ -316,7 +316,7 @@ char *GetGRFString(char *buff, uint16 st
 
	}
 

	
 
	/* If there is a fallback string, return that */
 
	if (default_text != NULL) return strecpy(buff, default_text->text, NULL);
 
	if (default_text != NULL) return strecpy(buff, default_text->text, last);
 

	
 
	/* Use the default string ID if the fallback string isn't available */
 
	return GetString(buff, _grf_text[stringid].def_string, last);
0 comments (0 inline, 0 general)