(svn r11422) -Fix [FS#1430]: properly support genders coming from newgrfs instead of crashing.
authorrubidium
Mon, 12 Nov 2007 20:05:12 +0000
changeset 8368 b526d13aeb44
parent 8367 40eba45653e2
child 8369 4decac386a96
(svn r11422) -Fix [FS#1430]: properly support genders coming from newgrfs instead of crashing.
src/strings.cpp
--- a/src/strings.cpp	Mon Nov 12 19:21:33 2007 +0000
+++ b/src/strings.cpp	Mon Nov 12 20:05:12 2007 +0000
@@ -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) {