From b4b98e51655012ea42dbc8ab9e455fbec0d04b39 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 13 Aug 2017 18:38:42 +0000 Subject: (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) --- src/pathfinder/yapf/yapf_destrail.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pathfinder') diff --git a/src/pathfinder/yapf/yapf_destrail.hpp b/src/pathfinder/yapf/yapf_destrail.hpp index 681034a2f..03519b059 100644 --- a/src/pathfinder/yapf/yapf_destrail.hpp +++ b/src/pathfinder/yapf/yapf_destrail.hpp @@ -140,7 +140,8 @@ public: * waypoint. */ Yapf().DisableCache(true); } - /* FALL THROUGH */ + FALLTHROUGH; + case OT_GOTO_STATION: m_destTile = CalcClosestStationTile(v->current_order.GetDestination(), v->tile, v->current_order.IsType(OT_GOTO_STATION) ? STATION_RAIL : STATION_WAYPOINT); m_dest_station_id = v->current_order.GetDestination(); -- cgit v1.2.3-70-g09d2