summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-03-04 00:14:28 +0000
committerDarkvater <darkvater@openttd.org>2005-03-04 00:14:28 +0000
commit0067f681176e02874dc083a0defb692c734f6866 (patch)
treefcc6d97f369d597dda4bc87f2070d21459f9a495 /tunnelbridge_cmd.c
parent232fffffacd45b6ca718bad3c63c35701e46467c (diff)
downloadopenttd-0067f681176e02874dc083a0defb692c734f6866.tar.xz
(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
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index a639bc673..29e218d3e 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -609,7 +609,8 @@ uint CheckTunnelBusy(uint tile, int *length)
return (uint)-1;
}
- if (length) *length = len;
+ if (length != NULL)
+ *length = len;
return tile;
}