From 77fdefea1944dfda4b68ad76f4a6afd17df6f556 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 20 Jul 2008 13:29:59 +0000 Subject: [PATCH] (svn r13754) -Fix (r13731): one could not join companies from the command line. --- src/openttd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index 2af09b080f..ae06cd2e87 100644 --- 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);