Skip to content

Commit 2b28343

Browse files
committed
fix(AttrObject): from_json
修复json::array到AttrObject的转换bug
1 parent 94939be commit 2b28343

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dice/DiceAttrVar.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,8 @@ AttrVar::AttrVar(const fifo_json& j) {
721721
case fifo_json::value_t::object:
722722
case fifo_json::value_t::array:
723723
type = Type::Table;
724-
new(&table) AttrObject(AnysTable(j));
724+
new(&table) AttrObject();
725+
table->from_json(j);
725726
break;
726727
case fifo_json::value_t::string:
727728
type = Type::U8String;

0 commit comments

Comments
 (0)