mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- fixed: GetSoundClass must be able to handle non-players.
This commit is contained in:
parent
f10ded756e
commit
980977d444
1 changed files with 1 additions and 1 deletions
|
@ -1906,7 +1906,7 @@ static const char *GetSoundClass(AActor *pp)
|
|||
{
|
||||
return Skins[player->userinfo.GetSkin()].Name.GetChars();
|
||||
}
|
||||
auto sclass = pp->NameVar(NAME_SoundClass);
|
||||
auto sclass = player? pp->NameVar(NAME_SoundClass) : NAME_None;
|
||||
|
||||
return sclass != NAME_None ? sclass.GetChars() : "player";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue