I'm trying to call a method on a script class from C++, but I keep getting a null pointer exception, I've been stuck on this for about a week now… I'm using an almost exact copy of the example in the documentation. What is weird is that it calls the function successfully, but then crashes immediately after…
Here is a minimal reproducible example (C++ 11): https://pastebin.com/EraySHgz