Browse Source

Persist the placed item in AutoPlaceItemInInventorySlot()

pull/4099/head
staphen 4 years ago committed by Anders Jenbo
parent
commit
331072cdcf
  1. 2
      Source/inv.cpp

2
Source/inv.cpp

@ -1503,7 +1503,7 @@ bool AutoPlaceItemInInventorySlot(Player &player, int slotIndex, const Item &ite
}
if (persistItem) {
player.InvList[player._pNumInv] = player.HoldItem;
player.InvList[player._pNumInv] = item;
player._pNumInv++;
AddItemToInvGrid(player, slotIndex, player._pNumInv, itemSize);

Loading…
Cancel
Save