diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-24 15:30:06 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-24 15:35:32 +0100 |
commit | 0c87df0b5fd50077a221a59e1904835b7243eb2a (patch) | |
tree | 5760885bd399ee0f861213cfe551eba485b7239e /src/critter.hpp | |
parent | e95cf30ce5e1a1b8573db963ffbb5f3a17ff7df2 (diff) |
src/critter: fix more movement-related crash bugs
Diffstat (limited to 'src/critter.hpp')
-rw-r--r-- | src/critter.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/critter.hpp b/src/critter.hpp index f05c3352..137cb268 100644 --- a/src/critter.hpp +++ b/src/critter.hpp @@ -30,8 +30,8 @@ struct critter final : object explicit operator critter_proto() const; void update(size_t i, const Ns& dt) override; - void update_movement(size_t i, const Ns& dt, rotation r); - void update_nonplayable(size_t i, const Ns& dt); + void update_movement(size_t& i, const Ns& dt, rotation r); + void update_nonplayable(size_t& i, const Ns& dt); void set_keys(bool L, bool R, bool U, bool D); void set_keys_auto(); Vector2 ordinal_offset(Vector2b offset) const override; |