From 3bdc0913a524f257f7fe9081b926b5920f29d42c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Mon, 27 Apr 2020 13:15:52 +0200 Subject: [PATCH] Make wording of all Variant warnings consistent --- core/variant_call.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 074b93d9102..9b5a638a326 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -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;