diff options
author | rubidium <rubidium@openttd.org> | 2008-07-20 13:29:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-20 13:29:59 +0000 |
commit | 77fdefea1944dfda4b68ad76f4a6afd17df6f556 (patch) | |
tree | 5d3979847f9f2570819182496afb434abf8d4968 /src | |
parent | b607b51d9342a44a20cc6c03fc36db38c2bab72f (diff) | |
download | openttd-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.cpp | 2 |
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); |