Fix unequipped armor flags

Closes #108
This commit is contained in:
Alexander Batalov 2022-08-01 07:17:01 +03:00
parent 00ee53efca
commit 2c69834a12
1 changed files with 1 additions and 1 deletions

View File

@ -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;