You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Make errors on RefCounted.free() more accurate
This commit is contained in:
@@ -763,7 +763,7 @@ Variant Object::callp(const StringName &p_method, const Variant **p_args, int p_
|
||||
}
|
||||
if (is_ref_counted()) {
|
||||
r_error.error = Callable::CallError::CALL_ERROR_INVALID_METHOD;
|
||||
ERR_FAIL_V_MSG(Variant(), "Can't 'free' a reference.");
|
||||
ERR_FAIL_V_MSG(Variant(), "Can't free a RefCounted object.");
|
||||
}
|
||||
|
||||
if (_lock_index.get() > 1) {
|
||||
|
||||
Reference in New Issue
Block a user