-
-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #6507: Don't try to load invalid depots from older savegames #7546
Conversation
GroupStatistics pool was not initialised before trying to delete vehicles (specifically, trams with no tram track)
…r bridges losing their type
Is there any possibility of vehicles being inside one of these invalid depots? |
Given we don't properly understand what caused the invalid depots, I can't be entirely sure. However, given all known "invalid depots" have been next to rails, and there aren't any connecting rails, I don't think so. As best as I can tell, they were depots that existed at some point, but were removed prior to saving, but somehow were still saved anyway |
Is there a way to check if any vehicles are (supposed to be) inside the depot before deleting it, and fail loading in that case? |
Wouldn't it fail in some other way if you try to delete a depot with vehicles in it? |
Probably overthinking it. Deal with other brokenness if it occurs, let's not preempt it. |
And also another bug spotted along the way
And another cleanup
Fixes #6605 as well, as it appears to be duplicated