diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-27 05:57:05 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-27 05:57:05 +0100 |
commit | 5f3d184276f6b4e13642018681cf33d2bc5b7638 (patch) | |
tree | c6538eb7ef9c6ab0f361337698f7eee4a9ece819 /editor | |
parent | 143b205fae27ed433fd7cac0e0ab6f0fa4f8b03b (diff) |
a
Diffstat (limited to 'editor')
-rw-r--r-- | editor/imgui-tiles.cpp | 1 |
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}); }; |