(svn r1923) - Fix: [ 1155696 ] Crash with german umlauts in station names. The width was not calculated using unsigned values, so all characters above 128 were "negative"

- Codechange: a more proper check for a null pointer in tunnelbridge_cmd.c should have gone in with the previous commit
This commit is contained in:
Darkvater
2005-03-04 00:14:28 +00:00
parent 232fffffac
commit 0067f68117
2 changed files with 6 additions and 5 deletions

View File

@@ -609,7 +609,8 @@ uint CheckTunnelBusy(uint tile, int *length)
return (uint)-1;
}
if (length) *length = len;
if (length != NULL)
*length = len;
return tile;
}