From 1bc6a4cc2bbb89f4509a89994bb11ca9601a1515 Mon Sep 17 00:00:00 2001 From: vl Date: Wed, 28 Jul 2010 08:57:40 +0200 Subject: [PATCH] Fixed: crash when we pass the login/pass in command line --- code/ryzom/client/src/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/client.cpp b/code/ryzom/client/src/client.cpp index a5a52d788..d6fc9f3ea 100644 --- a/code/ryzom/client/src/client.cpp +++ b/code/ryzom/client/src/client.cpp @@ -483,13 +483,13 @@ int main(int argc, char **argv) // TODO for Linux : splashscreen - if (argc >= 3) + if (argc >= 4) { LoginLogin = argv[1]; LoginPassword = argv[2]; if (!fromString(argv[3], LoginShardId)) LoginShardId = -1; } - else if (argc >= 2) + else if (argc >= 3) { LoginLogin = argv[1]; LoginPassword = argv[2];