summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-23 15:53:19 +0000
committerrubidium <rubidium@openttd.org>2009-01-23 15:53:19 +0000
commit93b1202576ec13be735adf587e1bace7f3df17d2 (patch)
tree759959fdcc21ed21be921329ac3855dc5c18cd1d /src
parent4fe58bc303f980ac4328b7e376bcbc76c70005d0 (diff)
downloadopenttd-93b1202576ec13be735adf587e1bace7f3df17d2.tar.xz
(svn r15229) -Fix (r14712): passwords weren't reset when creating a new company.
Diffstat (limited to 'src')
-rw-r--r--src/company_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 89f73414e..221ecfe7a 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -786,6 +786,7 @@ CommandCost CmdCompanyCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, c
if (IsValidCompanyID(ci->client_playas)) {
CompanyID company_backup = _local_company;
_network_company_states[c->index].months_empty = 0;
+ _network_company_states[c->index].password[0] = '\0';
/* XXX - When a client joins, we automatically set its name to the
* client's name (for some reason). As it stands now only the server