Mercurial > hg > openttd
changeset 7872:c388e1e41ab6 draft
(svn r11422) -Fix [FS#1430]: properly support genders coming from newgrfs instead of crashing.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 12 Nov 2007 20:05:12 +0000 |
parents | 8dad3ff6a7a7 |
children | 9d2f84f4c59a |
files | src/strings.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/strings.cpp +++ b/src/strings.cpp @@ -691,7 +691,8 @@ } case SCC_GENDER_LIST: { // {G 0 Der Die Das} - const char* s = GetStringPtr(argv_orig[(byte)*str++]); // contains the string that determines gender. + char buffr[512]; + const char *s = GetStringWithArgs(buffr, argv_orig[(byte)*str++], argv, last); // contains the string that determines gender. int len; int gender = 0; if (s != NULL) {