You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Make wording of all Variant warnings consistent
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user