Skip to content

Commit

Permalink
fix material tracking bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzziqersoftware committed Nov 14, 2023
1 parent a1b457a commit 4b4627d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Items.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4b4627d

Please sign in to comment.