From 4c9d9a87f18191ae9ae4368176c96b89dd172c8f Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 14 Oct 2006 22:31:18 +0000 Subject: (svn r6776) -Codechange: Use IsValidPlayer() function to determine of a PlayerID is an actual playable player (< MAX_PLAYERS) or not. --- ai/ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ai') 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; -- cgit v1.2.3-70-g09d2