Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix #10087: crash loading a save with corrupt peeps #10122
I'm not exactly sure how the peep got corrupted but it may have been a cause from the recent regression we had from the export/import bugs. The crash happens because current_ride != RIDE_ID_NULL but the ride its self doesn't exist. I wasn't sure if setting the current_ride back to RIDE_ID_NULL would be enough to prevent further crashes so instead it adds it to the removal list.