Player/Items: Fix the item durations when the item is stored in a bag different than the default backpack
Closes #1026 Signed-off-by: Subv <[email protected]>
This commit is contained in:
@@ -17657,7 +17657,7 @@ void Player::_LoadInventory(PreparedQueryResult result, uint32 timeDiff)
|
|||||||
ItemPosCountVec dest;
|
ItemPosCountVec dest;
|
||||||
err = CanStoreItem(itr->second->GetSlot(), slot, dest, item);
|
err = CanStoreItem(itr->second->GetSlot(), slot, dest, item);
|
||||||
if (err == EQUIP_ERR_OK)
|
if (err == EQUIP_ERR_OK)
|
||||||
itr->second->StoreItem(slot, item, true);
|
item = StoreItem(dest, item, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user