Make sure never to call GetPSprite when the ReadyWeapon is null

This commit is contained in:
Leonard2 2016-06-01 23:00:04 +02:00
parent 9ee5e57340
commit 8244d2c844
5 changed files with 28 additions and 26 deletions

View file

@ -1001,8 +1001,6 @@ void AActor::ClearInventory()
{
player->ReadyWeapon = nullptr;
player->PendingWeapon = WP_NOCHANGE;
player->GetPSprite(PSP_WEAPON)->SetState(nullptr);
player->GetPSprite(PSP_FLASH)->SetState(nullptr);
}
}