diff --git a/src/sound/s_advsound.cpp b/src/sound/s_advsound.cpp index 3b7cca0f8b..a982d9b67b 100644 --- a/src/sound/s_advsound.cpp +++ b/src/sound/s_advsound.cpp @@ -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(); } //==========================================================================