diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-29 11:08:26 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-29 11:08:26 +0100 |
| commit | 4d696c1540ad2c2abf2fabc8810fccf60a1f626c (patch) | |
| tree | 379911fd43c795deec3ad7eeeeb1a8a7b5d479f3 | |
| parent | bf8eb8290fbca1e4dfddd2b20fbd98a526306f72 (diff) | |
anim-atlas: allow getting first available rotation
| -rw-r--r-- | src/anim-atlas.cpp | 1 |
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); |
