Appearance-SyncAttach: Re-add missing UUID parsing for the CreateInventory AIS command (hopefully...)

meow-7.2.2
Ansariel 2016-04-02 18:31:58 +02:00
parent b268729469
commit 8fe42955e3
1 changed files with 12 additions and 1 deletions

View File

@ -411,7 +411,18 @@ void AISAPI::InvokeAISCommandCoro(LLCoreHttpUtil::HttpCoroutineAdapter::ptr_t ht
{
id = result["category_id"];
}
// <FS:Ansariel> - Patch: Appearance-SyncAttach
else if (type == COPYINVENTORY)
{
uuid_list_t ids;
AISUpdate::parseUUIDArray(result, "_created_items", ids);
AISUpdate::parseUUIDArray(result, "_created_categories", ids);
if (!ids.empty())
{
id = *ids.begin();
}
}
// </FS:Ansariel>
callback(id);
}