From 4b4627d3e5fccf6cd7cdf3f817db40f8d20cf53f Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 13 Nov 2023 22:06:49 -0800 Subject: [PATCH] fix material tracking bug --- src/Items.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Items.cc b/src/Items.cc index 5507d362..bdad98b6 100644 --- a/src/Items.cc +++ b/src/Items.cc @@ -102,7 +102,7 @@ void player_use_item(shared_ptr c, size_t item_index) { default: throw runtime_error("unknown material used"); } - if (!track_non_hp_tp_materials || (type == Type::HP) || (type == Type::TP)) { + if (track_non_hp_tp_materials || (type == Type::HP) || (type == Type::TP)) { p->set_material_usage(type, p->get_material_usage(type) + 1); }