summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-25 09:04:59 +0000
committertron <tron@openttd.org>2005-09-25 09:04:59 +0000
commitbdbceba0cb70ddd0ba8f17d0bfae31e973f7d0f2 (patch)
treed32081413d37e02ae74f2636f2ff0fa5e08da4dc /newgrf.c
parentd20bcf3eb5619cb742207e1bc6f59fc7c88f3fc3 (diff)
downloadopenttd-bdbceba0cb70ddd0ba8f17d0bfae31e973f7d0f2.tar.xz
(svn r2984) Use adequate types, this should aid portability a bit
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index 99d9fdc89..70b90ebeb 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -1668,7 +1668,7 @@ static void VehicleNewName(byte *buf, int len)
name = (const char*)buf;
len -= (lang & 0x80) ? 6 : 5;
for (; id < endid && len > 0; id++) {
- int ofs = strlen(name) + 1;
+ size_t ofs = strlen(name) + 1;
if (ofs < 128) {
DEBUG(grf, 8) ("VehicleNewName: %d <- %s", id, name);