godot-cpp/include/godot_cpp/core
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
..
binder_common.hpp Fixing compiler warnings around implicit type casting loosing precision 2021-11-22 21:48:20 +11:00
builtin_ptrcall.hpp Replace bindgins to work with extensions 2021-09-27 23:08:08 +10:00
class_db.hpp Normalized additional macros to ensure that everything works without client code needing using 2021-12-18 15:16:14 -08:00
defs.hpp Re-introduce build-in type code for core types 2021-09-27 23:08:10 +10:00
engine_ptrcall.hpp Fixed crash when called methods return nullptr. 2022-01-31 17:12:45 -08:00
error_macros.hpp Replace bindgins to work with extensions 2021-09-27 23:08:08 +10:00
math.hpp Fixing compiler warnings around implicit type casting loosing precision 2021-11-22 21:48:20 +11:00
memory.hpp Make extension instances create the corresponding godot object in their constructor 2021-12-03 15:37:49 +01:00
method_bind.hpp Fixing compiler warnings around implicit type casting loosing precision 2021-11-22 21:48:20 +11:00
method_ptrcall.hpp Rename interface to gdn_interface because it's a defined keyword under windows 2021-10-28 19:44:20 +11:00
object.hpp Normalized additional macros to ensure that everything works without client code needing using 2021-12-18 15:16:14 -08:00
type_info.hpp Fix issues with method calls 2021-09-27 23:08:08 +10:00