Browse Source

Make wording of all Variant warnings consistent

Pedro J. Estébanez 5 years ago
parent
commit
3bdc0913a5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/variant_call.cpp

+ 2 - 2
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;