mirror of
https://github.com/nzp-team/quakec.git
synced 2025-04-25 19:12:53 +00:00
SERVER: Properly remove all weapons on game over
The code assumed the IDs of the weapons would stay the same after one is removed. Instead, loop and call Weapon_RemoveWeapon(0).
This commit is contained in:
parent
2c430e5abf
commit
282ef03c95
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ void() EndGameSetup =
|
|||
Player_AddScore(self, self.score, false);
|
||||
for (float i = 0; i < MAX_PLAYER_WEAPONS; ++i)
|
||||
{
|
||||
Weapon_RemoveWeapon(i);
|
||||
Weapon_RemoveWeapon(0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue