rail_cmd.c
changeset 438 f80cc59e69c2
parent 417 6a7b22f86424
child 447 7e4bb71b8752
--- a/rail_cmd.c	Tue Nov 16 23:51:38 2004 +0000
+++ b/rail_cmd.c	Wed Nov 17 00:52:54 2004 +0000
@@ -1564,7 +1564,7 @@
 
 		if (!IS_RAIL_DEPOT(m5) && IS_RAIL_WAYPOINT(m5) && _map3_lo[ti->tile]&16) {
 			// look for customization
-			struct StationSpec *stat = GetCustomStation('WAYP', _map3_hi[ti->tile]);
+			struct StationSpec *stat = GetCustomStation(STAT_CLASS_WAYP, _map3_hi[ti->tile]);
 
 			if (stat) {
 				DrawTileSeqStruct const *seq;
@@ -1677,7 +1677,7 @@
 		return;
 	}
 
-	stat = GetCustomStation('WAYP', stat_id - 1);
+	stat = GetCustomStation(STAT_CLASS_WAYP, stat_id - 1);
 	assert(stat);
 	relocation = GetCustomStationRelocation(stat, NULL, 1);
 	// emulate station tile - open with building