From 64e3fedd7011cdf257f8e7eca929bd7a0977fb95 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 6 Apr 2016 09:36:06 +0200 Subject: [PATCH] Changed: Give priority to login specified as argument --- code/ryzom/client/src/login.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/login.cpp b/code/ryzom/client/src/login.cpp index 7d2e3173f..987e50dd2 100644 --- a/code/ryzom/client/src/login.cpp +++ b/code/ryzom/client/src/login.cpp @@ -779,7 +779,8 @@ void initLoginScreen() ClientApp = ClientCfg.ConfigFile.getVar("Application").asString(0); - string l = ClientCfg.LastLogin; + // give priority to login specified as argument + string l = !LoginLogin.empty() ? LoginLogin:ClientCfg.LastLogin; if(!l.empty()) {