summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-07-20 13:29:59 +0000
committerrubidium <rubidium@openttd.org>2008-07-20 13:29:59 +0000
commit77fdefea1944dfda4b68ad76f4a6afd17df6f556 (patch)
tree5d3979847f9f2570819182496afb434abf8d4968 /src
parentb607b51d9342a44a20cc6c03fc36db38c2bab72f (diff)
downloadopenttd-77fdefea1944dfda4b68ad76f4a6afd17df6f556.tar.xz
(svn r13754) -Fix (r13731): one could not join companies from the command line.
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp2
1 files changed, 1 insertions, 1 deletions
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);