(svn r14726) -Fix (r14720): making new companies in network kinda failed...

This commit is contained in:
rubidium
2008-12-23 12:26:19 +00:00
parent f8f7febe41
commit fb7ccc6820
2 changed files with 6 additions and 3 deletions

View File

@@ -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);