src/npf.cpp
changeset 6154 8f4c65bdf930
parent 6012 065d7234a7a9
child 6247 7d81e3a5d803
--- a/src/npf.cpp	Sun Feb 25 10:49:13 2007 +0000
+++ b/src/npf.cpp	Sun Feb 25 11:36:19 2007 +0000
@@ -594,7 +594,7 @@
 
 	/* check correct rail type (mono, maglev, etc) */
 	if (type == TRANSPORT_RAIL) {
-		RailType dst_type = GetTileRailType(dst_tile, TrackdirToTrack(src_trackdir));
+		RailType dst_type = GetTileRailType(dst_tile);
 		if (!HASBIT(aystar->user_data[NPF_RAILTYPES], dst_type))
 			return;
 	}