Merge remote-tracking branch 'origin/fixes' into fixes

fixes
Nuno 4 years ago
commit 6e59af8dc9

@ -3495,6 +3495,25 @@ std::string CLuaIHMRyzom::getSheetShape(const std::string &sheet)
if (!sheetPtr)
return "";
if (sheetPtr->type() == CEntitySheet::ITEM)
{
CItemSheet *sheet = (CItemSheet*)sheetPtr;
return sheet->getShape();
}
else if (sheetPtr->type() == CEntitySheet::FAUNA)
{
CCharacterSheet *sheet = (CCharacterSheet*)(sheetPtr);
return sheet->Body.getItem();
}
return "";
}
// ***************************************************************************
std::string CLuaIHMRyzom::getSheetFamily(const std::string &sheet)
{

Loading…
Cancel
Save