You've already forked OpenRCT2-Unity
mirror of
https://github.com/izzy2lost/OpenRCT2-Unity.git
synced 2026-03-10 12:38:22 -07: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