From 6710ad1737589e280cba5766a26c04172dccd0f9 Mon Sep 17 00:00:00 2001 From: Jonathan Gollnick Date: Sat, 5 Jun 2021 14:24:24 -0500 Subject: Let var2str display StringName with correct sigil --- core/variant/variant_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/variant') diff --git a/core/variant/variant_parser.cpp b/core/variant/variant_parser.cpp index b58f60c149..21c0d40fa5 100644 --- a/core/variant/variant_parser.cpp +++ b/core/variant/variant_parser.cpp @@ -1516,7 +1516,7 @@ Error VariantWriter::write(const Variant &p_variant, StoreStringFunc p_store_str case Variant::STRING_NAME: { String str = p_variant; - str = "@\"" + str.c_escape() + "\""; + str = "&\"" + str.c_escape() + "\""; p_store_string_func(p_store_string_ud, str); } break; -- cgit v1.2.3