mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-20 06:06:13 +00:00
Fixed: crash when we pass the login/pass in command line
This commit is contained in:
parent
a834276589
commit
37d9ad093b
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue