Skip to content

Commit

Permalink
While removing a player, check if it is a target (GM lock)
Browse files Browse the repository at this point in the history
  • Loading branch information
atupone committed May 25, 2024
1 parent 850b643 commit 0c2439f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bzflag/playing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,8 @@ static bool removePlayer (PlayerId id)
myTank->setRecipient(0);
if (myTank->getNemesis() == p)
myTank->setNemesis(0);
if (myTank->getTarget() == p)
myTank->setTarget(NULL);

completer.unregisterWord(p->getCallSign());

Expand Down

0 comments on commit 0c2439f

Please sign in to comment.