From 736d0bf43031a65c0e324344d71f9b962592e808 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 24 May 2012 00:08:20 +0000 Subject: [PATCH] Tried to fix karts randomly disappearing, caused by an uninitialised variable. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11264 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/karts/skidding.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/karts/skidding.cpp b/src/karts/skidding.cpp index c2c7afeb6..edb67f799 100644 --- a/src/karts/skidding.cpp +++ b/src/karts/skidding.cpp @@ -61,10 +61,11 @@ Skidding::~Skidding() */ void Skidding::reset() { - m_skid_time = 0.0f; - m_skid_state = m_skid_visual_time<=0 ? SKID_OLD : SKID_NONE; - m_skid_factor = 1.0f; - m_real_steering = 0.0f; + m_skid_time = 0.0f; + m_skid_state = m_skid_visual_time<=0 ? SKID_OLD : SKID_NONE; + m_skid_factor = 1.0f; + m_real_steering = 0.0f; + m_visual_rotation = 0.0f; } // reset // ----------------------------------------------------------------------------