mirror of https://github.com/OpenRCT2/OpenRCT2.git
Zero initialize some fields in ride station
This commit is contained in:
parent
78406f4d67
commit
9bfc3a0a29
|
@ -148,6 +148,10 @@ GameActions::Result RideCreateAction::Execute() const
|
|||
station.Exit.SetNull();
|
||||
station.TrainAtStation = RideStation::NO_TRAIN;
|
||||
station.QueueTime = 0;
|
||||
station.SegmentLength = 0;
|
||||
station.QueueLength = 0;
|
||||
station.Length = 0;
|
||||
station.Height = 0;
|
||||
}
|
||||
|
||||
std::fill(std::begin(ride->vehicles), std::end(ride->vehicles), EntityId::GetNull());
|
||||
|
|
Loading…
Reference in New Issue