diff --git a/src/guiengine/event_handler.cpp b/src/guiengine/event_handler.cpp index 9cdefb856..cc3543aee 100644 --- a/src/guiengine/event_handler.cpp +++ b/src/guiengine/event_handler.cpp @@ -22,6 +22,7 @@ #endif #include "audio/music_manager.hpp" #include "audio/sfx_manager.hpp" +#include "config/player_manager.hpp" #include "config/user_config.hpp" #include "graphics/irr_driver.hpp" #include "graphics/stk_tex_manager.hpp" @@ -185,6 +186,7 @@ bool EventHandler::OnEvent (const SEvent &event) music_manager->pauseMusic(); SFXManager::get()->pauseAll(); } + PlayerManager::get()->save(); if (addons_manager->hasDownloadedIcons()) addons_manager->saveInstalled(); } diff --git a/src/main_loop.cpp b/src/main_loop.cpp index f264b9815..e35121af8 100644 --- a/src/main_loop.cpp +++ b/src/main_loop.cpp @@ -24,6 +24,7 @@ #endif #include "audio/music_manager.hpp" #include "audio/sfx_manager.hpp" +#include "config/player_manager.hpp" #include "config/user_config.hpp" #include "graphics/central_settings.hpp" #include "graphics/irr_driver.hpp" @@ -131,6 +132,7 @@ float MainLoop::getLimitedDt() first_out_focus = false; music_manager->pauseMusic(); SFXManager::get()->pauseAll(); + PlayerManager::get()->save(); if (addons_manager->hasDownloadedIcons()) addons_manager->saveInstalled(); }