Merge pull request #53124 from RandomShaper/fix_inverted_error

This commit is contained in:
Rémi Verschelde 2021-09-27 14:34:18 +02:00 committed by GitHub
commit 8d2deddc72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();