Fix game warnings
This commit is contained in:
1 parent
b55809b925
commit
fbdb3e0875
2 files changed
+7
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user