|
@@ -1651,10 +1651,6 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
|
bool was_freed = false;
|
|
bool was_freed = false;
|
|
Object *obj = ret->get_validated_object_with_check(was_freed);
|
|
Object *obj = ret->get_validated_object_with_check(was_freed);
|
|
|
|
|
|
- if (was_freed) {
|
|
|
|
- err_text = "Got a freed object as a result of the call.";
|
|
|
|
- OPCODE_BREAK;
|
|
|
|
- }
|
|
|
|
if (obj && obj->is_class_ptr(GDScriptFunctionState::get_class_ptr_static())) {
|
|
if (obj && obj->is_class_ptr(GDScriptFunctionState::get_class_ptr_static())) {
|
|
err_text = R"(Trying to call an async function without "await".)";
|
|
err_text = R"(Trying to call an async function without "await".)";
|
|
OPCODE_BREAK;
|
|
OPCODE_BREAK;
|