summaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-15 09:00:02 +0000
committertron <tron@openttd.org>2005-11-15 09:00:02 +0000
commit8a3587fa286d6d3dec354c2b4cb27657ee813044 (patch)
tree403f3895461c780ab3903620ba2129a83d43eaea /strings.c
parent84a16a0b30c3c8f1df9a3e9fa8c2bb1e88199403 (diff)
downloadopenttd-8a3587fa286d6d3dec354c2b4cb27657ee813044.tar.xz
(svn r3185) const
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings.c b/strings.c
index ee03b9978..683214aca 100644
--- a/strings.c
+++ b/strings.c
@@ -613,7 +613,7 @@ static char *FormatString(char *buff, const char *str, const int32 *argv, uint c
}
case 13: { // {G 0 Der Die Das}
- byte *s = (byte*)GetStringPtr(argv_orig[(byte)*str++]); // contains the string that determines gender.
+ const byte* s = (const byte*)GetStringPtr(argv_orig[(byte)*str++]); // contains the string that determines gender.
int len;
int gender = 0;
if (s != NULL && s[0] == 0x87) gender = s[1];