From e67f0db7c1775a48720a406cae25613f25321cf6 Mon Sep 17 00:00:00 2001 From: Benau Date: Sun, 8 Jul 2018 13:58:19 +0800 Subject: [PATCH] Reset all actions in suitable function for local game restart --- src/karts/controller/local_player_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/karts/controller/local_player_controller.cpp b/src/karts/controller/local_player_controller.cpp index 46d8b15a6..9dfcbdea9 100644 --- a/src/karts/controller/local_player_controller.cpp +++ b/src/karts/controller/local_player_controller.cpp @@ -58,7 +58,6 @@ LocalPlayerController::LocalPlayerController(AbstractKart *kart, PerPlayerDifficulty d) : PlayerController(kart), m_sky_particles_emitter(NULL) { - m_actions.fill(0); m_difficulty = d; m_player = StateManager::get()->getActivePlayer(local_player_id); if(m_player) @@ -115,6 +114,7 @@ LocalPlayerController::~LocalPlayerController() */ void LocalPlayerController::reset() { + m_actions.fill(0); PlayerController::reset(); m_sound_schedule = false; } // reset