mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
Protect against invalid readyweapon (#1807)
Co-authored-by: kraflab <kraflab@gmail.com>
This commit is contained in:
parent
29d3fabef0
commit
6eb4413fb8
@ -586,7 +586,10 @@ void A_Lower(player_t *player, pspdef_t *psp)
|
||||
return;
|
||||
}
|
||||
|
||||
player->readyweapon = player->pendingweapon;
|
||||
if (player->pendingweapon < NUMWEAPONS || !mbf21)
|
||||
{
|
||||
player->readyweapon = player->pendingweapon;
|
||||
}
|
||||
|
||||
P_BringUpWeapon(player);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user