godot-cpp/include/godot_cpp
ondy-personal 3d237fc7d7
Fixed crash when called methods return nullptr.
The returned value "ret" may be nullptr in which case the code would crash because "object_get_instance_binding" can't be called on nullptr input.

This should be very easy to reproduce, I encountered it pretty much any time I called a method that returned Ref<Something>. E.g.:

Ref<GeometryInstance3D> instance;
instance.instantiate();
instance.get_mesh();    // Crash because no mesh was set for the instance and the returned value was nullptr.
2022-01-31 17:12:45 -08:00
..
classes Fix object_set_instance being wrongly called for built-in wrapped classes 2021-12-06 15:40:19 +01:00
core Fixed crash when called methods return nullptr. 2022-01-31 17:12:45 -08:00
variant Fixing compiler warnings around implicit type casting loosing precision 2021-11-22 21:48:20 +11:00
godot.hpp Make extension instances create the corresponding godot object in their constructor 2021-12-03 15:37:49 +01:00