diff options
author | truelight <truelight@openttd.org> | 2005-11-29 16:06:06 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-11-29 16:06:06 +0000 |
commit | 708c135ff7a3e02ab712e4ec6f9a42ff05a826d2 (patch) | |
tree | 8b7f265c59098ba43b43718499f68844752e0c9c /ai | |
parent | 90e50e5ca9785af69076aa8c4ae177f54e1c9bb9 (diff) | |
download | openttd-708c135ff7a3e02ab712e4ec6f9a42ff05a826d2.tar.xz |
(svn r3246) -Fix: small glitch in ai_network_client code (network_client.c)
-Fix: make sure this glitch can never happen again (ai.c)
Diffstat (limited to 'ai')
-rw-r--r-- | ai/ai.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -250,6 +250,8 @@ void AI_LoadAIControl(void) */ void AI_StartNewAI(PlayerID player) { + assert(player < MAX_PLAYERS); + #ifdef GPMI /* Keep this in a different IF, because the function can turn _ai.gpmi off!! */ if (_ai.gpmi && _ai.gpmi_mod == NULL) |