summaryrefslogtreecommitdiffhomepage
path: root/src/wall-atlas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wall-atlas.cpp')
-rw-r--r--src/wall-atlas.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp
index 9b711f60..685125cd 100644
--- a/src/wall-atlas.cpp
+++ b/src/wall-atlas.cpp
@@ -47,7 +47,8 @@ StringView wall_atlas::name() const { return _info.name; }
ArrayView<const wall_frame> wall_frames::items(const wall_atlas& a) const
{
- fm_debug_assert(index != (uint32_t)-1);
+ fm_assert(index < a.array().size());
+ fm_debug_assert(count != (uint32_t)-1);
return { a.array() + index, count };
}