Fix uninitialized variable Player::local_animation_speed
authorLoic Blot <loic.blot@unix-experience.fr>
Sat, 28 Mar 2015 09:45:32 +0000 (10:45 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Sat, 28 Mar 2015 09:46:01 +0000 (10:46 +0100)
src/player.cpp

index 08cb24248396a59e7d967bce1597b3a3eb6dfcf2..4a5e5ad91ed21f7ee94b224ad8c748d25c118587 100644 (file)
@@ -86,6 +86,7 @@ Player::Player(IGameDef *gamedef, const char *name):
        movement_liquid_fluidity_smooth = 0.5  * BS;
        movement_liquid_sink            = 10   * BS;
        movement_gravity                = 9.81 * BS;
+       local_animation_speed           = 0.0;
 
        // Movement overrides are multipliers and must be 1 by default
        physics_override_speed        = 1;