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

This commit is contained in:
lopar 2020-08-29 16:30:22 +03:00
parent 2007b38dc3
commit 17b4b99851

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_array();
$itemInSlot = $itemInSlotRow->fetch_row();
print_r($itemInSlot).'<br>';
}
if (in_array($selectedItem->item_type,[HELMET,ARMOR,LEGS,BOOTS,GLOVES,WEAPON,SHIELD,BELT,AMULET])) {