Let var2str display StringName with correct sigil

This commit is contained in:
Jonathan Gollnick
2021-06-05 14:24:24 -05:00
parent bc1fcb9c65
commit 6710ad1737
30 changed files with 40 additions and 40 deletions

View File

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