summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-29 11:08:26 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-29 11:08:26 +0100
commit4d696c1540ad2c2abf2fabc8810fccf60a1f626c (patch)
tree379911fd43c795deec3ad7eeeeb1a8a7b5d479f3
parentbf8eb8290fbca1e4dfddd2b20fbd98a526306f72 (diff)
anim-atlas: allow getting first available rotation
-rw-r--r--src/anim-atlas.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/anim-atlas.cpp b/src/anim-atlas.cpp
index f75b1679..0c4d4f63 100644
--- a/src/anim-atlas.cpp
+++ b/src/anim-atlas.cpp
@@ -140,7 +140,6 @@ BitArrayView anim_atlas::bitmask() const
rotation anim_atlas::next_rotation_from(rotation r) const noexcept
{
constexpr auto count = std::size_t(rotation_COUNT);
- fm_assert(r < rotation_COUNT);
for (auto i = std::size_t(r)+1; i < count; i++)
if (_group_indices[i] != 0xff)
return rotation(i);