mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Assign Station Start, Entrance, Exit, to null sentinel
This commit is contained in:
committed by
Aaron van Geffen
parent
5261a5c102
commit
a9cafb37eb
@@ -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