Closed TheSHEEEP closed 4 years ago
This was the issue bringing this to my attention: https://github.com/TheSHEEEP/godotdetour/issues/1
Turns out this is a known Windows-issue on godot-cpp. A fix is known but hasn't been mergen in many months. Makes me a bit speechless, tbh.
I added the "solution" to this to the build part of the readme.
@Limonado This should also resolve your problems.
On Windows, creating an agent or obstacle causes a crash.
Investigating a bit, this line is the culprit (at least for the agent case, likely similar for the others as well): https://github.com/TheSHEEEP/godotdetour/blob/master/src/detournavigation.cpp#L394
So far it is unknown why this line produces an invalid Null instance on Windows which then naturally goes on to cause crashes when being used. While it produces a valid instance on Linux that can be used normally.