diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-24 12:31:59 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-24 12:31:59 +0100 |
commit | 2b5a6e3f20a4e95f5b2119ed2ede7dde826511f3 (patch) | |
tree | 1aa77afd048867c453a45cf4ebc01d214f997650 /src | |
parent | a3d2775168f28cf294800b2a873ac20e3a87ddad (diff) |
fix crash bug with unrolled movement
assertion failed: i < c->_objects.size() in src/object.cpp:234
Diffstat (limited to 'src')
-rw-r--r-- | src/critter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/critter.cpp b/src/critter.cpp index c04630dd..45e6dcd8 100644 --- a/src/critter.cpp +++ b/src/critter.cpp @@ -139,7 +139,7 @@ bool update_movement_body(size_t& i, critter& C, const anim_def& info, uint8_t n template<rotation r> CORRADE_ALWAYS_INLINE -bool update_movement_3way(size_t i, critter& C, const anim_def& info) +bool update_movement_3way(size_t& i, critter& C, const anim_def& info) { constexpr auto rotations = rotation_to_similar(r); if (update_movement_body<rotations[0], false>(i, C, info, 0)) |