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);
|
Object *bobj = p_var->get_validated_object_with_check(was_freed);
|
||||||
if (!bobj) {
|
if (!bobj) {
|
||||||
if (was_freed) {
|
if (was_freed) {
|
||||||
basestr = "null instance";
|
|
||||||
} else {
|
|
||||||
basestr = "previously freed";
|
basestr = "previously freed";
|
||||||
|
} else {
|
||||||
|
basestr = "null instance";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
basestr = bobj->get_class();
|
basestr = bobj->get_class();
|
||||||
|
|
Loading…
Reference in New Issue