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 | 05537346eb7644077baa52a777fad5667af69d2d (patch) | |
tree | 5d3979847f9f2570819182496afb434abf8d4968 /src | |
parent | c25c2caa5a5b847399cdd1ccb522edbb6c1274ef (diff) | |
download | openttd-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.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); |