mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 17:32:26 +00:00
- corrected the NUL checks in S_FindSkinnedSound.
This commit is contained in:
parent
7d1ce1c8cd
commit
8b5847d4a2
1 changed files with 3 additions and 3 deletions
|
@ -1636,10 +1636,10 @@ int S_FindSkinnedSound (AActor *actor, FSoundID refid)
|
|||
const char *pclass;
|
||||
int gender = 0;
|
||||
|
||||
if (actor != nullptr)
|
||||
if (actor != nullptr && actor->player != nullptr)
|
||||
{
|
||||
if (actor->player != nullptr) pclass = S_GetSoundClass(actor);
|
||||
if (actor->player != nullptr) gender = actor->player->userinfo.GetGender();
|
||||
pclass = S_GetSoundClass(actor);
|
||||
gender = actor->player->userinfo.GetGender();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue