From 0067f681176e02874dc083a0defb692c734f6866 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 4 Mar 2005 00:14:28 +0000 Subject: (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 --- tunnelbridge_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tunnelbridge_cmd.c') 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; } -- cgit v1.2.3-54-g00ecf