Кольца стакались в одном слоте потому что у них один тип.
This commit is contained in:
parent
2007b38dc3
commit
17b4b99851
2
main.php
2
main.php
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user