Skip to content

Commit

Permalink
Fix unequipped armor flags
Browse files Browse the repository at this point in the history
Closes #108
  • Loading branch information
alexbatalov committed Aug 1, 2022
1 parent 00ee53e commit 2c69834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inventory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2c69834

Please sign in to comment.