- Fixed: A TITLEMAP defined with SpawnWithWeaponRaised set caused a crash.

SVN r4156 (trunk)
This commit is contained in:
Randy Heit 2013-02-22 01:51:35 +00:00
parent e0db52629d
commit e0c751114f

View file

@ -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;
}