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 upkdtree asserting when removing station #7461
Comments
This comment has been minimized.
This comment has been minimized.
Need a series of steps to trigger the error, or a savegame that will trigger it. |
This comment has been minimized.
This comment has been minimized.
Couldn't manage to make it crash in master yet. It was in a all Random AIs + Company Value GS game. Map size wasn't that big, 256x256 if I recall. It crashed rather early too, about a few months into the game. I'm still trying to make it crash in master. |
This comment has been minimized.
This comment has been minimized.
OpenTTD.zip - crash files EDIT2: on the savegame, the station is named Funham Central, it's a demolished station at tile 106034, from white company, RoadAI. |
Sorry, this crash triggered when I was testing a custom build… will try to see if I can make it crash in master.
Version of OpenTTD
2019-04-02-variable-script_max_op_codes-me1aa0e3e71
Expected result
No crash
Actual result
crash
Steps to reproduce
assert(next != INVALID_NODE); // node must exist somewhere and must be found before a leaf is reached
line 213 of kdtree.hpp