fix: bots are not killable after the changelevel. fixes #143

This commit is contained in:
ds 2020-07-15 21:58:57 +03:00
commit 2580c9478c
2 changed files with 2 additions and 1 deletions

View file

@ -2977,7 +2977,7 @@ void Bot::update () {
if (cv_tkpunish.int_ () != 2 || util.isFakeClient (game.entityOfIndex (m_voteKickIndex))) {
return;
}
edict_t *killer = game.entityOfIndex (m_lastVoteKick);
auto killer = game.entityOfIndex (m_lastVoteKick);
++killer->v.frags;
MDLL_ClientKill (killer);