Skip to content

Commit

Permalink
fix mattock uses in ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Sep 19, 2021
1 parent 6ba0022 commit fef706a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/injected/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4049,7 +4049,8 @@ void render_entity_props()
}
else if (g_entity_type == to_id("ENT_TYPE_ITEM_MATTOCK"))
{
ImGui::SliderInt("Uses left##MattockUses", (int*)&g_entity[1], 1, 255);
auto mattock = (Mattock*)g_entity;
ImGui::SliderScalar("Uses left##MattockUses", ImGuiDataType_U8, &mattock->remaining, &u8_min, &u8_max);
}
else if (
g_entity_type == to_id("ENT_TYPE_FLOOR_DOOR_EXIT") || g_entity_type == to_id("ENT_TYPE_FLOOR_DOOR_STARTING_EXIT") ||
Expand Down

0 comments on commit fef706a

Please sign in to comment.