Skip to content

Commit e65ec90

Browse files
committed
Remind developers about memnew() in crash message when missing binding callbacks
1 parent 53b546e commit e65ec90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/classes/wrapped.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ Wrapped::Wrapped(const StringName p_godot_class) {
8484
godot::internal::gdextension_interface_object_set_instance_binding(_owner, godot::internal::token, this, _constructing_class_binding_callbacks);
8585
_constructing_class_binding_callbacks = nullptr;
8686
} else {
87-
ERR_PRINT("BUG: create a Godot Object without binding callbacks.");
88-
CRASH_NOW_MSG("BUG: create a Godot Object without binding callbacks.");
87+
CRASH_NOW_MSG("BUG: Godot Object created without binding callbacks. Did you forget to use memnew()?");
8988
}
9089
}
9190

0 commit comments

Comments
 (0)