Codechange: Make StationType an enum class. (#13339)

This commit is contained in:
Peter Nelson
2025-01-19 20:53:08 +00:00
committed by GitHub
parent b0ec3d6959
commit 4397aa3909
22 changed files with 196 additions and 196 deletions
+3 -3
View File
@@ -46,15 +46,15 @@ private:
StationType type;
switch (this->vt) {
case VEH_TRAIN:
type = STATION_WAYPOINT;
type = StationType::RailWaypoint;
break;
case VEH_ROAD:
type = STATION_ROADWAYPOINT;
type = StationType::RoadWaypoint;
break;
case VEH_SHIP:
type = STATION_BUOY;
type = StationType::Buoy;
break;
default: