Skip to content

Commit

Permalink
try to fix osx build
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Mar 23, 2024
1 parent 3d5076f commit 9661ec3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/critter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ CORRADE_ALWAYS_INLINE
bool update_movement_2(size_t& i, critter& C, const anim_def& info, uint8_t nsteps)
{
constexpr auto vec = rotation_to_vec(r);
return update_movement_body<r, vec.x(), vec.y(), MultiStep>(i, C, info, nsteps);
constexpr auto vx = vec.x(), vy = vec.y();
return update_movement_body<r, vx, vy, MultiStep>(i, C, info, nsteps);
}

template<rotation r>
Expand Down

0 comments on commit 9661ec3

Please sign in to comment.