forked from rosebudai/OpenRCT2-Web
Assign Station Start, Entrance, Exit, to null sentinel
This commit is contained in:
1 parent
5261a5c102
commit
a9cafb37eb
1 file changed
+5
-1
@@ -150,7 +150,11 @@ GameActions::Result RideCreateAction::Execute() const
|
||||
ride->SetNameToDefault();
|
||||
|
||||
// Default initialize all stations.
|
||||
std::ranges::fill(ride->GetStations(), RideStation{});
|
||||
RideStation station{};
|
||||
station.Start.SetNull();
|
||||
station.Entrance.SetNull();
|
||||
station.Exit.SetNull();
|
||||
std::ranges::fill(ride->GetStations(), station);
|
||||
|
||||
ride->status = RideStatus::Closed;
|
||||
ride->NumTrains = 1;
|
||||
|
||||
Reference in new issue
Block a user