road_cmd.c
changeset 2133 d7f582b7001d
parent 2124 868ae25e586b
child 2140 a04d0142ad65
--- a/road_cmd.c	Tue Jul 19 21:28:15 2005 +0000
+++ b/road_cmd.c	Tue Jul 19 21:49:35 2005 +0000
@@ -496,7 +496,7 @@
 	if (!CheckTileOwnership(tile) || !EnsureNoVehicle(tile)) return CMD_ERROR;
 
 	// tile is already of requested type?
-	if ( (uint)(_m[tile].m4 & 0xF) == totype) return CMD_ERROR;
+	if ((_m[tile].m4 & 0xFU) == totype) return CMD_ERROR;
 
 	if (exec) {
 		// change type.