2
0
Fork 0

Fix crash when encoding freed object in ConfigFile

4.0
Haoyu Qiu 2022-09-04 19:56:37 +07:00
parent b6d102c7c2
commit 3c0759608a
1 changed files with 1 additions and 1 deletions

@ -1680,7 +1680,7 @@ Error VariantWriter::write(const Variant &p_variant, StoreStringFunc p_store_str
} break;
case Variant::OBJECT: {
Object *obj = p_variant;
Object *obj = p_variant.get_validated_object();
if (!obj) {
p_store_string_func(p_store_string_ud, "null");