OSDN Git Service

[Fix] #38997 アイテムを落としてもザックからアイテムが減らない問題を修正 / Fixed the issue that number of items...
authorHourier <hourier@users.sourceforge.jp>
Sat, 25 Jan 2020 03:09:40 +0000 (12:09 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 25 Jan 2020 09:28:49 +0000 (18:28 +0900)
src/object2.c

index 36e16f4..f226650 100644 (file)
@@ -4601,7 +4601,7 @@ void inven_item_increase(player_type *owner_ptr, INVENTORY_IDX item, ITEM_NUMBER
        num -= o_ptr->number;
 
        /* Change the number and weight */
-       if (num != 0) return;
+       if (num == 0) return;
 
        /* Add the number */
        o_ptr->number += num;