summaryrefslogtreecommitdiff
path: root/rail_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'rail_gui.c')
-rw-r--r--rail_gui.c2
1 files changed, 1 insertions, 1 deletions
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();