Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Jan 9, 2025
1 parent e997104 commit fdff61c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ void entity::update(float_t delta) noexcept {

if (_props.frame >= animation.keyframes.size()) {
if (std::ranges::any_of(animation.keyframes, [](const auto &keyframe) { return keyframe.singleshoot; })) {
const auto &name = _props.action;
const auto name = _props.action;

_props.action.clear();

if (_onanimationfinished) {
Expand Down

0 comments on commit fdff61c

Please sign in to comment.