summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-01-12 12:48:00 +0000
committerzuu <zuu@openttd.org>2013-01-12 12:48:00 +0000
commit07ffc90bf4d1afcd5a1a60dd3f4ba5b8e7435cd0 (patch)
tree1608cb7536b06e00f8197b6565544ee29db00781 /src/script/api
parent5c242c64a30d4c96d9032d906d8711be354be9cb (diff)
downloadopenttd-07ffc90bf4d1afcd5a1a60dd3f4ba5b8e7435cd0.tar.xz
(svn r24908) -Fix [FS#5419]: Allow GSs to pass negative integer string parameters (frosch123)
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/script_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_text.cpp b/src/script/api/script_text.cpp
index e9b51e2e7..e5a93168e 100644
--- a/src/script/api/script_text.cpp
+++ b/src/script/api/script_text.cpp
@@ -183,7 +183,7 @@ char *ScriptText::_GetEncodedText(char *p, char *lastofp)
p = this->paramt[i]->_GetEncodedText(p, lastofp);
continue;
}
- p += seprintf(p, lastofp,":%X", this->parami[i]);
+ p += seprintf(p, lastofp,":%X", (uint32)this->parami[i]);
}
return p;