From 952b973b89a8e9d3176061325026cd88f7937a8b Mon Sep 17 00:00:00 2001 From: Deve <deveee@gmail.com> Date: Mon, 12 Mar 2018 23:03:15 +0100 Subject: [PATCH] Valgrind complains about changing variable after closeScreen --- src/states_screens/user_screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/states_screens/user_screen.cpp b/src/states_screens/user_screen.cpp index dedbd8381..bf1239e45 100644 --- a/src/states_screens/user_screen.cpp +++ b/src/states_screens/user_screen.cpp @@ -159,8 +159,8 @@ void BaseUserScreen::init() m_new_registered_data = false; if (m_auto_login) { - login(); m_auto_login = false; + login(); return; } m_auto_login = false;