From 77fdefea1944dfda4b68ad76f4a6afd17df6f556 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 20 Jul 2008 13:29:59 +0000 Subject: (svn r13754) -Fix (r13731): one could not join companies from the command line. --- src/openttd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/openttd.cpp b/src/openttd.cpp index 2af09b080..ae06cd2e8 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); -- cgit v1.2.3-70-g09d2