summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 641557b0d..255e76767 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -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 */