diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-30 08:49:25 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-30 08:49:25 +0100 |
commit | adc3fba76fbf1ccfd0863d39702d57f247b5b109 (patch) | |
tree | 69ac2f2821635ff166e165d6d46aaec71b1a4053 /src | |
parent | c26eeb8f947ec2b94348838601270f5e8bc03cfc (diff) |
scenery: add assert
Diffstat (limited to 'src')
-rw-r--r-- | src/scenery.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 |