Make wording of all Variant warnings consistent
This commit is contained in:
parent
ac8b4708a3
commit
3bdc0913a5
|
@ -1099,7 +1099,7 @@ void Variant::call_ptr(const StringName &p_method, const Variant **p_args, int p
|
|||
if (!obj) {
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
||||
WARN_PRINT("Attempted call on stray pointer object.");
|
||||
WARN_PRINT("Attempted call on a deleted object.");
|
||||
}
|
||||
#endif
|
||||
r_error.error = CallError::CALL_ERROR_INSTANCE_IS_NULL;
|
||||
|
@ -1276,7 +1276,7 @@ bool Variant::has_method(const StringName &p_method) const {
|
|||
if (!obj) {
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (ScriptDebugger::get_singleton() && _get_obj().rc && !ObjectDB::get_instance(_get_obj().rc->instance_id)) {
|
||||
WARN_PRINT("Attempted method check on stray pointer object.");
|
||||
WARN_PRINT("Attempted method check on a deleted object.");
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue