summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui-tiles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/imgui-tiles.cpp')
-rw-r--r--editor/imgui-tiles.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/imgui-tiles.cpp b/editor/imgui-tiles.cpp
index 0dbe10d3..b4fc8a9c 100644
--- a/editor/imgui-tiles.cpp
+++ b/editor/imgui-tiles.cpp
@@ -36,6 +36,7 @@ void app::draw_editor_tile_pane_atlas(tile_editor& ed, StringView name, const st
text(" (selected)");
}
const auto len = snformat(buf, "{:d}"_cf, N);
+ fm_assert(len < std::size(buf));
ImGui::SameLine(window_width - ImGui::CalcTextSize(buf).x - style.FramePadding.x - 4*dpi[0]);
text({buf, len});
};