summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);