(svn r3798) Fix typo in r3795
authortron
Wed, 08 Mar 2006 20:25:28 +0000
changeset 3169 3761fbfeb1d1
parent 3168 563c59bd28e0
child 3170 3740e285e4df
(svn r3798) Fix typo in r3795
roadveh_cmd.c
--- a/roadveh_cmd.c	Wed Mar 08 19:47:18 2006 +0000
+++ b/roadveh_cmd.c	Wed Mar 08 20:25:28 2006 +0000
@@ -1082,7 +1082,7 @@
 		} else if (IsTileType(desttile, MP_STATION)) {
 			if (IS_BYTE_INSIDE(_m[desttile].m5, 0x43, 0x4B)) {
 				/* We are heading for a station */
-				dir = GetRoadStationDir(tile);
+				dir = GetRoadStationDir(desttile);
 do_it:;
 				/* When we are heading for a depot or station, we just
 				 * pretend we are heading for the tile in front, we'll