From adc3fba76fbf1ccfd0863d39702d57f247b5b109 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 30 Nov 2022 08:49:25 +0100 Subject: scenery: add assert --- src/scenery.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scenery.cpp b/src/scenery.cpp index 6e3d08ac..5f82e151 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -46,6 +46,7 @@ scenery::scenery(door_tag_t, const anim_atlas& atlas, rotation r, bool is_open) passable{is_open}, blocks_view{!is_open}, interactive{true} { fm_assert(r < rotation_COUNT); + fm_assert(atlas.group(r).frames.size() >= 2); } bool scenery::can_activate() const noexcept -- cgit v1.2.3