(svn r19075) -Codechange: unhackify NetworkChangeCompanyPassword()
This commit is contained in:
@@ -816,8 +816,7 @@ static void MakeNewGameDone()
|
||||
/* We are the server, we start a new company (not dedicated),
|
||||
* so set the default password *if* needed. */
|
||||
if (_network_server && !StrEmpty(_settings_client.network.default_company_pass)) {
|
||||
char *password = _settings_client.network.default_company_pass;
|
||||
NetworkChangeCompanyPassword(1, &password);
|
||||
NetworkChangeCompanyPassword(_settings_client.network.default_company_pass);
|
||||
}
|
||||
#endif /* ENABLE_NETWORK */
|
||||
|
||||
|
Reference in New Issue
Block a user