From 394f6fedbbafe905bdb10c998b0d2b476a1d710f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Oct 2022 23:52:36 +0200 Subject: fix tile_atlas::num_tiles() snafu --- main/imgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/imgui.cpp') diff --git a/main/imgui.cpp b/main/imgui.cpp index 6f0d7c11..e202fd08 100644 --- a/main/imgui.cpp +++ b/main/imgui.cpp @@ -103,11 +103,11 @@ void app::draw_editor_pane(tile_type& type, float main_menu_height) _editor.floor().select_tile_permutation(v_); }; const auto add_tile_count = [&] { - snprintf(buf, sizeof(buf), "%zu", (std::size_t)v_->num_tiles().product()); + snprintf(buf, sizeof(buf), "%zu", (std::size_t)v_->num_tiles()); ImGui::SameLine(window_width - ImGui::CalcTextSize(buf).x - style.FramePadding.x - 4); ImGui::Text("%s", buf); }; - const std::size_t N = v->num_tiles().product(); + const std::size_t N = v->num_tiles(); if (const auto flags = ImGuiTreeNodeFlags_(ImGuiTreeNodeFlags_SpanFullWidth | ImGuiTreeNodeFlags_Framed); auto b = tree_node(k.data(), flags)) { -- cgit v1.2.3