summaryrefslogtreecommitdiff
path: root/ai/ai.c
diff options
context:
space:
mode:
Diffstat (limited to 'ai/ai.c')
-rw-r--r--ai/ai.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai/ai.c b/ai/ai.c
index baa2166b1..9072d8fe6 100644
--- a/ai/ai.c
+++ b/ai/ai.c
@@ -213,7 +213,7 @@ void AI_RunGameLoop(void)
*/
void AI_StartNewAI(PlayerID player)
{
- assert(player < MAX_PLAYERS);
+ assert(IsValidPlayer(player));
/* Called if a new AI is booted */
_ai_player[player].active = true;