mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-30 16:01:49 +00:00
- Added missing null pointer check.
This commit is contained in:
parent
3f9a3a454b
commit
d00c6e4ecc
1 changed files with 1 additions and 1 deletions
|
@ -1621,7 +1621,7 @@ const char *S_GetSoundClass(AActor *pp)
|
|||
return Skins[player->userinfo.GetSkin()].Name.GetChars();
|
||||
}
|
||||
|
||||
return player->SoundClass.IsEmpty() ? defaultsoundclass : player->SoundClass.GetChars();
|
||||
return (!player || player->SoundClass.IsEmpty()) ? defaultsoundclass : player->SoundClass.GetChars();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue