diff --git a/src/achievements/achievement_info.hpp b/src/achievements/achievement_info.hpp index 65dae7772..5e52989bf 100644 --- a/src/achievements/achievement_info.hpp +++ b/src/achievements/achievement_info.hpp @@ -47,7 +47,7 @@ public: ACHIEVE_STRIKE = 2, ACHIEVE_ARCH_ENEMY = 3, ACHIEVE_MARATHONER = 4, - ACHIEVE_SKIDDING = 5 + ACHIEVE_SKIDDING = 5 }; /** Achievement check type: * ALL_AT_LEAST: All goal values must be reached (or exceeded). diff --git a/src/karts/skidding.cpp b/src/karts/skidding.cpp index c6e0d7720..0751bb68d 100644 --- a/src/karts/skidding.cpp +++ b/src/karts/skidding.cpp @@ -415,11 +415,11 @@ void Skidding::update(float dt, bool is_on_ground, bonus_force, bonus_time, /*fade-out-time*/ 1.0f); - StateManager::ActivePlayer *c = m_kart->getController()->getPlayer(); - if (c && c->getConstProfile() == PlayerManager::get()->getCurrentPlayer()) - { - PlayerManager::increaseAchievement(AchievementInfo::ACHIEVE_SKIDDING, "skidding"); - } + StateManager::ActivePlayer *c = m_kart->getController()->getPlayer(); + if (c && c->getConstProfile() == PlayerManager::get()->getCurrentPlayer()) + { + PlayerManager::increaseAchievement(AchievementInfo::ACHIEVE_SKIDDING, "skidding"); + } } else { m_kart->getKartGFX()