Do not access engine functions inside bot's destructors.
This commit is contained in:
parent
e15b6219ec
commit
a3cc619a5c
2 changed files with 3 additions and 2 deletions
|
|
@ -1127,7 +1127,10 @@ void ClientDisconnect (edict_t *ent)
|
|||
|
||||
// check if its a bot
|
||||
if (bot != nullptr && bot->pev == &ent->v)
|
||||
{
|
||||
bot->EnableChatterIcon (false);
|
||||
bots.Free (index);
|
||||
}
|
||||
|
||||
bots.AdjustQuota (false, ent);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue