fix material tracking bug

This commit is contained in:
Martin Michelsen
2023-11-13 22:06:49 -08:00
parent a1b457a5e6
commit 4b4627d3e5
+1 -1
View File
@@ -102,7 +102,7 @@ void player_use_item(shared_ptr<Client> 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);
}