Fix game warnings
This commit is contained in:
parent
b55809b925
commit
fbdb3e0875
2 changed files with 7 additions and 3 deletions
|
@ -1174,6 +1174,10 @@ int BotAISetupClient(int client, struct bot_settings_s *settings, qboolean resta
|
|||
if (!botstates[client]) botstates[client] = G_Alloc(sizeof(bot_state_t));
|
||||
bs = botstates[client];
|
||||
|
||||
if (!bs) {
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
if (bs && bs->inuse) {
|
||||
BotAI_Print(PRT_FATAL, "BotAISetupClient: client %d already setup\n", client);
|
||||
return qfalse;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue