Skip to content
Snippets Groups Projects
Commit 1968dcf1 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix very very broken

parent faa28601
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -968,15 +968,15 @@ void AISAPI::InvokeAISCommandCoro(LLCoreHttpUtil::HttpCoroutineAdapter::ptr_t ht
}
break;
case FETCHITEM:
if (result.has("linked_id"))
{
ids.emplace(result["linked_id"]);
}
else if (result.has("item_id"))
if (result.has("item_id"))
{
// Error message might contain an item_id!!!
ids.emplace(result["item_id"]);
}
if (result.has("linked_id"))
{
ids.emplace(result["linked_id"]);
}
break;
case COPYINVENTORY:
case CREATEINVENTORY:
......@@ -1542,7 +1542,7 @@ void AISUpdate::parseUUIDArray(const LLSD& content, const std::string& name, uui
{
if (content.has(name))
{
for(const auto& sd : content.asArray())
for(const auto& sd : content[name].asArray())
{
ids.insert(sd.asUUID());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment