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
Crash on placing vehicle in group that used to contain 1 vehicle #7831
Comments
|
Line 754 in f664395
g is null here but I don't see how it's even possible, and I fail to reproduce. BTW in crash.sav "Perenjori Memorial Bus" is in "Perenjori" group.
|
Perhaps groups are not updated properly when a vehicle is destroyed? Destroying a vehicle with a train might also work. Looking at the code, probably have to have the GUI open the whole time as well - similar to the AI settings window crashes when an AI slot is changed. |
I already tried the train trick, with the GUI open. And when looking at the code the weird thing is to enter in |
I re-loaded an auto-save. The UFO came at around the same time, destroyed the old bus and I bought the new bus, named it and grouped it successfully. The underlying cause may have been different? |
I got a crash when I created a group while I had another group selected. I'm unsure if it's related to this issue as well. |
I think this was resolved with #8223. |
I agree. Duplicate of #7838 |
On second thought, I experienced a very similar crash just today. I accidentally bought an older model tram, so I bought and set it to clone the original one's orders with ctrl+go to in the orders window. I hadn't grouped the old tram, but I had made a group for it called Mulga Downs. I then added a second group under Local called Mulga Downs (should that even be possible?) before realising it was in error and deleting it. Then when I tried to move the new tram into the remaining group (sorry, no idea if it was the original or the 2nd group), the game crashed. Crash zip: I also experienced a similar group-related crash yesterday but sorry, I think the files from that one were overwritten. I was playing on a server in that case but it only crashed my client. |
Version of OpenTTD
1.9.3
Expected result
The vehicle is placed in the empty group. There is now one vehicle in the group where previously there was none.
Actual result
Game crash
Steps to reproduce
Zip file with log, png, dmp and emergency sav:
crash.zip
The text was updated successfully, but these errors were encountered: