From 3878be0d099bb14c133cbd809a60a46f663250fc Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Fri, 19 Aug 2022 19:42:21 +0300 Subject: [PATCH] Fix items disappearing when using bag --- src/inventory.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/inventory.cc b/src/inventory.cc index a7d5d8c..f7de17b 100644 --- a/src/inventory.cc +++ b/src/inventory.cc @@ -4999,7 +4999,10 @@ static int _drop_into_container(Object* a1, Object* a2, int a3, Object** a4, int int rc = itemAttemptAdd(a1, a2, quantityToMove); if (rc != 0) { if (a3 != -1) { - itemAttemptAdd(_inven_dude, a2, quantityToMove); + // SFALL: Fix for items disappearing from inventory when you try to + // drag them to bag/backpack in the inventory list and are + // overloaded. + itemAdd(_inven_dude, a2, quantityToMove); } } else { if (a4 != NULL) {