Merge branch 'inventory-fixes' into 'inventory-fixes'

Inventory Fixes - move to original repo

See merge request ryzom/ryzom-core!9
inventory-fixes
Ben Saine 3 years ago
commit 3c9b21c1b8

@ -798,7 +798,11 @@ static DECLARE_INTERFACE_USER_FCT(getAnimalInventoryStateText)
// According to server status, change the inventory text
uint status= (uint)args[0].getInteger();
if(ANIMAL_STATUS::isInStable((ANIMAL_STATUS::EAnimalStatus)status))
if(ANIMAL_STATUS::isInBag((ANIMAL_STATUS::EAnimalStatus)status))
{
result.setString("uiAnimalInBag");
}
else if(ANIMAL_STATUS::isInStable((ANIMAL_STATUS::EAnimalStatus)status))
{
result.setString("uiAnimalInStable");
}

Loading…
Cancel
Save