mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Fixed: A TITLEMAP defined with SpawnWithWeaponRaised set caused a crash.
SVN r4156 (trunk)
This commit is contained in:
parent
e0db52629d
commit
e0c751114f
1 changed files with 5 additions and 2 deletions
|
@ -170,8 +170,11 @@ void P_BringUpWeapon (player_t *player)
|
|||
|
||||
if (player->PendingWeapon == WP_NOCHANGE)
|
||||
{
|
||||
player->psprites[ps_weapon].sy = WEAPONTOP;
|
||||
P_SetPsprite (player, ps_weapon, player->ReadyWeapon->GetReadyState());
|
||||
if (player->ReadyWeapon != NULL)
|
||||
{
|
||||
player->psprites[ps_weapon].sy = WEAPONTOP;
|
||||
P_SetPsprite (player, ps_weapon, player->ReadyWeapon->GetReadyState());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue