Ensure ride->inspection_station is set in ride_prepare_breakdown (#10245)

This commit is contained in:
Eyal Minsky-Fenick authored and GitHub committed 2020-04-18 15:30:25 +02:00
1 parent 35bbf6a166
commit 2ef77414d5
1 file changed
+1
+1
View File
@@ -2430,6 +2430,7 @@ void ride_prepare_breakdown(Ride* ride, int32_t breakdownReason)
ride->breakdown_reason_pending = breakdownReason;
ride->breakdown_sound_modifier = 0;
ride->not_fixed_timeout = 0;
ride->inspection_station = 0; // ensure set to something.
switch (breakdownReason)
{