From 93b1202576ec13be735adf587e1bace7f3df17d2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 23 Jan 2009 15:53:19 +0000 Subject: (svn r15229) -Fix (r14712): passwords weren't reset when creating a new company. --- src/company_cmd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/company_cmd.cpp') 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 -- cgit v1.2.3-70-g09d2