Кольца стакались в одном слоте потому что у них один тип.

This commit is contained in:
lopar 2020-08-29 16:27:48 +03:00
parent d2f793f3d1
commit 2007b38dc3

View File

@ -315,7 +315,7 @@ function dressitem($id)
$itemInSlotRow = db::c()->query('SELECT dressed_slot FROM inventory WHERE owner_id = ?i AND dressed_slot > 0 AND item_type = ?i', $_SESSION['uid'], $selectedItem->item_type);
$itemInSlotQuantity = $itemInSlotRow->getNumRows();
if ($itemInSlotQuantity) {
$itemInSlot = $itemInSlotRow->fetch_assoc();
$itemInSlot = $itemInSlotRow->fetch_assoc_array();
print_r($itemInSlot).'<br>';
}
if (in_array($selectedItem->item_type,[HELMET,ARMOR,LEGS,BOOTS,GLOVES,WEAPON,SHIELD,BELT,AMULET])) {