We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
20190329-master-g1d14e31be3-windows-win64
Clicking on Delete in the town window when in the Scenario Editor should delete the town.
Clicking on Delete in the town window when in the Scenario Editor crashes the game.
The text was updated successfully, but these errors were encountered:
Yep I can reproduce this. Seems to be an issue with viewport signs not being updated correctly in the k-d tree.
Sorry, something went wrong.
See: https://github.com/OpenTTD/OpenTTD/blob/master/src/town_cmd.cpp#L2874
_viewport_sign_kdtree.Insert(ViewportSignKdtreeItem::MakeTown(t->index)); is called from within CmdDeleteTown, which looks wrong.
_viewport_sign_kdtree.Insert(ViewportSignKdtreeItem::MakeTown(t->index));
Changing Insert to Remove is sufficient to make the problem go away.
Fix OpenTTD#7440: Mixed up Remove and Insert
0ba83e9
Fix OpenTTD#7440: Remove town sign when deleting town, not add it onc…
b8b46e2
…e more
cebdd72
c2da810
nielsmh
No branches or pull requests
Version of OpenTTD
20190329-master-g1d14e31be3-windows-win64
Expected result
Clicking on Delete in the town window when in the Scenario Editor should delete the town.
Actual result
Clicking on Delete in the town window when in the Scenario Editor crashes the game.
Steps to reproduce
The text was updated successfully, but these errors were encountered: