diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-14 22:31:18 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-14 22:31:18 +0000 |
commit | 6b6d908308c9aaf32f7b99500715319aaab1a51c (patch) | |
tree | 52f21281bd10b45ef340a15357a04bf130b9b554 /ai | |
parent | 9732c129c16dea48e69188b75c2e39f9faacf86f (diff) | |
download | openttd-6b6d908308c9aaf32f7b99500715319aaab1a51c.tar.xz |
(svn r6776) -Codechange: Use IsValidPlayer() function to determine of a PlayerID is an
actual playable player (< MAX_PLAYERS) or not.
Diffstat (limited to 'ai')
-rw-r--r-- | ai/ai.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |