summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-24 00:03:47 +0000
committerrubidium <rubidium@openttd.org>2008-12-24 00:03:47 +0000
commit4a1f4144ebc0b94bd7ef138ce557bfbcaf2a9818 (patch)
tree9167bc72abf5c65151cbc6c136430806ed72c9e5 /src/company_cmd.cpp
parentc3746a55bbee5d1b752411480a6e1abfe0413870 (diff)
downloadopenttd-4a1f4144ebc0b94bd7ef138ce557bfbcaf2a9818.tar.xz
(svn r14733) -Fix (r14730): creating new companies didn't always work as expected.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 860246f5c..440d324d0 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -808,11 +808,11 @@ CommandCost CmdCompanyCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
* Other client(s)/server:
* _local_company/_network_playas: what they play as
* cid = requested company/company of joining client */
- ClientIndex cid = (ClientIndex)p2;
+ ClientID cid = (ClientID)p2;
/* Has the network client a correct ClientIndex? */
if (!(flags & DC_EXEC)) return CommandCost();
- NetworkClientInfo *ci = NetworkFindClientInfoFromIndex(cid);
+ NetworkClientInfo *ci = NetworkFindClientInfoFromClientID(cid);
if (ci == NULL) return CommandCost();
/* Delete multiplayer progress bar */