This commit is contained in:
ALEXks
2025-05-19 14:07:33 +03:00
parent c548f4ab4c
commit 4bcf83f551

View File

@@ -1171,9 +1171,7 @@ int SPF_GetArrayLinks(void*& context, int winHandler, short *options, short *pro
linkedArrays[ref].insert(toAdd); linkedArrays[ref].insert(toAdd);
} }
json links;
json allLinks = json::array(); json allLinks = json::array();
for (auto& array : linkedArrays) for (auto& array : linkedArrays)
{ {
json currLink; json currLink;
@@ -1186,9 +1184,11 @@ int SPF_GetArrayLinks(void*& context, int winHandler, short *options, short *pro
allLinks.push_back(currLink); allLinks.push_back(currLink);
} }
json links;
links["allLinks"] = allLinks; links["allLinks"] = allLinks;
string resVal = allLinks.dump(); string resVal = links.dump();
copyStringToShort(result, resVal); copyStringToShort(result, resVal);
retSize = (int)resVal.size() + 1; retSize = (int)resVal.size() + 1;
} }