summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-11 12:45:54 +0200
committerGitHub <noreply@github.com>2021-06-11 12:45:54 +0200
commit80e5997154ba824f664661880e492030e9e43f71 (patch)
tree2c2dc4a8f4f7e8bb8ecba6b63d60df32993032ed /core
parent7e1a6befdaf6c6f8627bc6ef6621666b6024cf91 (diff)
parent6710ad1737589e280cba5766a26c04172dccd0f9 (diff)
Merge pull request #49499 from cptchuckles/fix-var2str-sigil
Let var2str display StringName with correct sigil
Diffstat (limited to 'core')
-rw-r--r--core/variant/variant_parser.cpp2
1 files changed, 1 insertions, 1 deletions
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;