(svn r1467) Fixed a nasty bug where one could build one station OVER the other
authorCelestar
Mon, 10 Jan 2005 16:35:20 +0000
changeset 972 52e53fc7401a
parent 971 1b6f956d8ac5
child 973 5352a6b57a2e
(svn r1467) Fixed a nasty bug where one could build one station OVER the other
station_cmd.c
--- a/station_cmd.c	Mon Jan 10 14:56:26 2005 +0000
+++ b/station_cmd.c	Mon Jan 10 16:35:20 2005 +0000
@@ -645,8 +645,8 @@
 		// if station is set, then we have special handling to allow building on top of already existing stations.
 		// so station points to -1 if we can build on any station. or it points to a station if we're only allowed to build
 		// on exactly that station.
-		if (station && IS_TILETYPE(tile_cur, MP_STATION)) {
-			if (_map5[tile] >= 8) {
+		if ( (station != NULL) && IS_TILETYPE(tile_cur, MP_STATION)) {
+			if (_map5[tile_cur] >= 8) {
 				_error_message = STR_0007_FLAT_LAND_REQUIRED;
 				return CMD_ERROR;
 			} else {