summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-22 00:05:19 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-22 00:05:19 +0000
commit697a8fa8c07ede434d485d2306dc06f97bf58c43 (patch)
tree2eb12c55faa1a4b5e4c3604bc932e92854bb4f3d
parentd279b51dff88ec3b065093ddfc060cb66a408ab2 (diff)
downloadopenttd-697a8fa8c07ede434d485d2306dc06f97bf58c43.tar.xz
(svn r6890) - Fix (r6884): Supply last position of the correct buffer...
-rw-r--r--strings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/strings.c b/strings.c
index 71e330bfe..7da26efdc 100644
--- a/strings.c
+++ b/strings.c
@@ -198,15 +198,15 @@ static char *GetStringWithArgs(char *buffr, uint string, const int32 *argv, cons
break;
case 28:
- GetGRFString(buff, index, last);
+ GetGRFString(buff, index, lastof(buff));
return FormatString(buffr, buff, argv, 0, last);
case 29:
- GetGRFString(buff, index + 0x800, last);
+ GetGRFString(buff, index + 0x800, lastof(buff));
return FormatString(buffr, buff, argv, 0, last);
case 30:
- GetGRFString(buff, index + 0x1000, last);
+ GetGRFString(buff, index + 0x1000, lastof(buff));
return FormatString(buffr, buff, argv, 0, last);
case 31: