Make sure never to call GetPSprite when the ReadyWeapon is null
This commit is contained in:
parent
9ee5e57340
commit
8244d2c844
5 changed files with 28 additions and 26 deletions
|
|
@ -934,8 +934,6 @@ void cht_Take (player_t *player, const char *name, int amount)
|
|||
|
||||
player->ReadyWeapon = nullptr;
|
||||
player->PendingWeapon = WP_NOCHANGE;
|
||||
player->GetPSprite(PSP_WEAPON)->SetState(nullptr);
|
||||
player->GetPSprite(PSP_FLASH)->SetState(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue