(svn r13824) -Fix (r13822): also make sure a tile is a road stop tile before trying to get information about the roadstop...
authorrubidium
Fri, 25 Jul 2008 13:20:50 +0000
changeset 9711 99549b968f4b
parent 9710 6b6c38221d2e
child 9712 f86db5d17c58
(svn r13824) -Fix (r13822): also make sure a tile is a road stop tile before trying to get information about the roadstop...
src/road_cmd.cpp
--- a/src/road_cmd.cpp	Fri Jul 25 10:10:11 2008 +0000
+++ b/src/road_cmd.cpp	Fri Jul 25 13:20:50 2008 +0000
@@ -570,6 +570,7 @@
 		}
 
 		case MP_STATION:
+			if (!IsRoadStop(tile)) goto do_clear;
 			if (IsDriveThroughStopTile(tile)) {
 				if (pieces & ~AxisToRoadBits(DiagDirToAxis(GetRoadStopDir(tile)))) goto do_clear;
 			} else {