From 4d696c1540ad2c2abf2fabc8810fccf60a1f626c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 29 Nov 2022 11:08:26 +0100 Subject: anim-atlas: allow getting first available rotation --- src/anim-atlas.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3