diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-05-26 22:29:32 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-06-14 20:48:49 +0800 |
commit | b3bd54001f55246bc1d2d5d601498846465bfc12 (patch) | |
tree | 15c479f2aa6b16362ef1b0707cb0b1435fe1ead8 /core/variant | |
parent | 12e0f10c74e9619262f1edcfdc1840432ada0565 (diff) |
Fix json dump and print of circular structure
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant/variant.cpp b/core/variant/variant.cpp index d10f41b833..4e45862fd3 100644 --- a/core/variant/variant.cpp +++ b/core/variant/variant.cpp @@ -1698,6 +1698,7 @@ String Variant::stringify(List<const void *> &stack) const { } str += "}"; + stack.erase(d.id()); return str; } break; case PACKED_VECTOR2_ARRAY: { @@ -1801,6 +1802,7 @@ String Variant::stringify(List<const void *> &stack) const { } str += "]"; + stack.erase(arr.id()); return str; } break; |