(svn r2984) Use adequate types, this should aid portability a bit

This commit is contained in:
tron
2005-09-25 09:04:59 +00:00
parent 03ad234d47
commit c2c865e4b9
7 changed files with 14 additions and 11 deletions

View File

@@ -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);