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
commit05537346eb7644077baa52a777fad5667af69d2d (patch)
tree5d3979847f9f2570819182496afb434abf8d4968 /src
parentc25c2caa5a5b847399cdd1ccb522edbb6c1274ef (diff)
downloadopenttd-05537346eb7644077baa52a777fad5667af69d2d.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);