summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-23 12:26:19 +0000
committerrubidium <rubidium@openttd.org>2008-12-23 12:26:19 +0000
commitfb7ccc6820f2d4d6ec1a72f39210f06f8c22b323 (patch)
treeebd80839e8c9aa6f9d6f3c723dc76afcdb076693 /src/company_cmd.cpp
parentf8f7febe41311ff3562c57a10672e3a62174104b (diff)
downloadopenttd-fb7ccc6820f2d4d6ec1a72f39210f06f8c22b323.tar.xz
(svn r14726) -Fix (r14720): making new companies in network kinda failed...
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 8a36945a6..860246f5c 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -813,7 +813,7 @@ CommandCost CmdCompanyCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
/* Has the network client a correct ClientIndex? */
if (!(flags & DC_EXEC)) return CommandCost();
NetworkClientInfo *ci = NetworkFindClientInfoFromIndex(cid);
- if (ci != NULL) return CommandCost();
+ if (ci == NULL) return CommandCost();
/* Delete multiplayer progress bar */
DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0);