Laserlicht 2 月之前
父節點
當前提交
739b165387
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lib/serializer/JsonSerializeFormat.h

+ 3 - 3
lib/serializer/JsonSerializeFormat.h

@@ -347,10 +347,10 @@ public:
 		else
 		{
 			const auto & node = getCurrent()[fieldName].Struct();
-			for (const auto & [keyStr, jsonVal] : node)
+			for (const auto & n : node)
 			{
-				LIBRARY->identifiers()->requestIdentifier(jsonVal.getModScope(), Key::entityType(), keyStr, [&value, jsonVal](int32_t index) {
-					value[Key(index)] = jsonVal.Integer(); // TODO: only int supported yet
+				LIBRARY->identifiers()->requestIdentifier(n.second.getModScope(), Key::entityType(), n.first, [&value, n](int32_t index) {
+					value[Key(index)] = n.second.Integer(); // TODO: only int supported yet
 				});
 			}
 		}