mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +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 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