# HG changeset patch # User rubidium # Date 2008-07-20 13:29:59 # Node ID ed8384e30512eb6d6bbc5400f9442ce8d22a9c38 # Parent 4bceb5cec251009bd4db42d5480a54a310d0364d (svn r13754) -Fix (r13731): one could not join companies from the command line. diff --git a/src/openttd.cpp b/src/openttd.cpp --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -629,7 +629,7 @@ int ttd_main(int argc, char *argv[]) if (_network_playas != PLAYER_SPECTATOR) { _network_playas--; - if (!IsValidPlayerID(_network_playas)) return false; + if (_network_playas >= MAX_PLAYERS) return false; } } if (port != NULL) rport = atoi(port);