Fix inverted error messages about null object

This commit is contained in:
Pedro J. Estébanez 2021-09-27 13:58:46 +02:00
parent 1ae922a829
commit ee238b2a4d
1 changed files with 2 additions and 2 deletions

View File

@ -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();