mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-08 01:12:10 +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;
|
const char *pclass;
|
||||||
int gender = 0;
|
int gender = 0;
|
||||||
|
|
||||||
if (actor != nullptr)
|
if (actor != nullptr && actor->player != nullptr)
|
||||||
{
|
{
|
||||||
if (actor->player != nullptr) pclass = S_GetSoundClass(actor);
|
pclass = S_GetSoundClass(actor);
|
||||||
if (actor->player != nullptr) gender = actor->player->userinfo.GetGender();
|
gender = actor->player->userinfo.GetGender();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue