Zero initialize some fields in ride station

This commit is contained in:
ζeh Matt 2024-03-01 18:17:16 +02:00
parent 78406f4d67
commit 9bfc3a0a29
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 4 additions and 0 deletions

View File

@ -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());