From 2c69834a12b2158053ae021c9e23628317d4b815 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 1 Aug 2022 07:17:01 +0300 Subject: [PATCH] Fix unequipped armor flags Closes #108 --- src/inventory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inventory.cc b/src/inventory.cc index 74c5b04..370bf10 100644 --- a/src/inventory.cc +++ b/src/inventory.cc @@ -2631,7 +2631,7 @@ int _invenWieldFunc(Object* critter, Object* item, int a3, bool a4) if (itemType == ITEM_TYPE_ARMOR) { Object* armor = critterGetArmor(critter); if (armor != NULL) { - armor->flags = ~OBJECT_WORN; + armor->flags &= ~OBJECT_WORN; } item->flags |= OBJECT_WORN;