summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 152e2919..007a398c 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -83,7 +83,7 @@ void Player::logic()
break;
case WALK:
- mFrame = (get_elapsed_time(mWalkTime) * 6) / getWalkSpeed();
+ mFrame = (int) ((get_elapsed_time(mWalkTime) * 6) / getWalkSpeed());
if (mFrame >= 6)
nextStep();
break;