diff options
author | rubidium <rubidium@openttd.org> | 2011-01-19 16:47:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-01-19 16:47:40 +0000 |
commit | 795a5283289473185afdedb3133155101e84b0fe (patch) | |
tree | 00845d6c66a5a9289173acc4b7e1cb78eeb36c0d /src/company_cmd.cpp | |
parent | e54a1f67213218f52d8e27bce3aeda5d7dc16ad9 (diff) | |
download | openttd-795a5283289473185afdedb3133155101e84b0fe.tar.xz |
(svn r21854) -Codechange: refactor the password setting methods to make it possible to change the password of other companies (on the server)
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r-- | src/company_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 9ae1b1dbb..a37ff677b 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -835,7 +835,7 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 assert(_local_company == COMPANY_SPECTATOR); SetLocalCompany(c->index); if (!StrEmpty(_settings_client.network.default_company_pass)) { - NetworkChangeCompanyPassword(_settings_client.network.default_company_pass); + NetworkChangeCompanyPassword(_local_company, _settings_client.network.default_company_pass); } /* Now that we have a new company, broadcast our company settings to |