From 86d19cb577a8b6d73840563d36983e7caf4d1eb6 Mon Sep 17 00:00:00 2001 From: miham Date: Wed, 17 Nov 2004 00:52:54 +0000 Subject: (svn r647) Cleanup custom station classes handling. (pasky) --- rail_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rail_gui.c') diff --git a/rail_gui.c b/rail_gui.c index 050ac03bc..b50b56c59 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -307,7 +307,7 @@ static void BuildRailClick_Sign(Window *w) static void BuildRailClick_Waypoint(Window *w) { - _waypoint_count = GetCustomStationsCount('WAYP'); + _waypoint_count = GetCustomStationsCount(STAT_CLASS_WAYP); if (HandlePlacePushButton(w, 18, SPR_OPENTTD_BASE + 7, 1, PlaceRail_Waypoint) && _waypoint_count > 1) ShowBuildWaypointPicker(); -- cgit v1.2.3-54-g00ecf