diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 05:25:40 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 05:27:38 +0100 |
commit | 999e720d2f6578eb1f8e83872985bf1961c78aa9 (patch) | |
tree | 63a8e163c06cc184f5f52f437ace9efd266ecd00 | |
parent | 7c6f5e8885952e7f755f8b3536c51c37a021d412 (diff) |
w
-rw-r--r-- | src/wall-atlas.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp index 995be1e9..a0dceac5 100644 --- a/src/wall-atlas.cpp +++ b/src/wall-atlas.cpp @@ -81,6 +81,9 @@ wall_atlas::wall_atlas(wall_atlas_def def, String path, const ImageView2D& img) fm_throw("wall_atlas '{}' defined group {}/{} has no frames!"_cf, _path, dir_name, group_name); fm_soft_assert(G.index < frame_count && G.index + G.count <= frame_count); + const auto size = expected_size(_info.depth, gr); + for (const auto& frame : ArrayView { &_frame_array[G.index], G.count }) + fm_soft_assert(frame.size == size); } } if (!found) [[unlikely]] |