mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +00:00
Fix item getter for moving items
This fixes an issue where the item would get overwritten and would effectively fetch a "random" item in the inventory to move instead of the requested one.
This commit is contained in:
parent
d8cde40b49
commit
fbf0b59ff1
@ -353,8 +353,6 @@ void InventoryComponent::MoveItemToInventory(Item* item, const eInventoryType in
|
||||
|
||||
while (left > 0)
|
||||
{
|
||||
item = origin->FindItemByLot(lot, ignoreEquipped);
|
||||
|
||||
if (item == nullptr)
|
||||
{
|
||||
item = origin->FindItemByLot(lot, false);
|
||||
|
Loading…
Reference in New Issue
Block a user