aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-12-13 14:32:13 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-12-13 14:32:13 +0100
commitb6dedf5c1e9ec384c59115539f8791364f6273d2 (patch)
treed790b13385352bd3d363d12ab747cce19365a9a5 /src/crepe/api
parentf9ab8f01a170e75b0dc16f74421d9cbbe70dbac4 (diff)
Fixed issue
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/Animator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/Animator.cpp b/src/crepe/api/Animator.cpp
index 4ce4bf0..5016e7e 100644
--- a/src/crepe/api/Animator.cpp
+++ b/src/crepe/api/Animator.cpp
@@ -52,6 +52,6 @@ void Animator::set_anim(int col) {
void Animator::next_anim() {
Animator::Data & ctx = this->data;
- ctx.row = ctx.row++ % this->grid_size.x;
+ ctx.row = ++ctx.row % this->grid_size.x;
this->spritesheet.mask.x = ctx.row * this->spritesheet.mask.w;
}