Fix inverted error messages about null object
This commit is contained in:
parent
1ae922a829
commit
ee238b2a4d
|
@ -88,9 +88,9 @@ static String _get_var_type(const Variant *p_var) {
|
|||
Object *bobj = p_var->get_validated_object_with_check(was_freed);
|
||||
if (!bobj) {
|
||||
if (was_freed) {
|
||||
basestr = "null instance";
|
||||
} else {
|
||||
basestr = "previously freed";
|
||||
} else {
|
||||
basestr = "null instance";
|
||||
}
|
||||
} else {
|
||||
basestr = bobj->get_class();
|
||||
|
|
Loading…
Reference in New Issue