1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 21:49:10 +00:00

(svn r24908) -Fix [FS#5419]: Allow GSs to pass negative integer string parameters (frosch123)

This commit is contained in:
zuu
2013-01-12 12:48:00 +00:00
parent 5c242c64a3
commit 07ffc90bf4
2 changed files with 2 additions and 2 deletions

View File

@@ -867,7 +867,7 @@ static char *FormatString(char *buff, const char *str_arg, StringParameters *arg
bool lookup = (l == SCC_ENCODED);
if (lookup) s += len;
param = strtol(s, &p, 16);
param = (int32)strtoul(s, &p, 16);
if (lookup) {
if (param >= TAB_SIZE) {