aboutsummaryrefslogtreecommitdiffstats
path: root/src/animation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation.c')
-rw-r--r--src/animation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animation.c b/src/animation.c
index 95447b2..d2aeb70 100644
--- a/src/animation.c
+++ b/src/animation.c
@@ -45,9 +45,9 @@ void closeAnimation(Animation* animation)
void setAnimationFrame(Animation* animation, int frame)
{
animation->currentFrame = frame;
- unsigned int nextFrameDataOffset = animation->width * animation->height * 4 * frame;
+ unsigned int frameOffset = animation->width * animation->height * 4 * frame;
- UpdateTexture(animation->texture, ((unsigned char*)animation->asset->image.data) + nextFrameDataOffset);
+ UpdateTexture(animation->texture, ((unsigned char*)animation->asset->image.data) + frameOffset);
}
void runAnimation(Animation* animation)