From 980977d444bdd0921c99a7f5cfa237d556583f70 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 4 Jan 2019 16:08:45 +0100 Subject: [PATCH] - fixed: GetSoundClass must be able to handle non-players. --- src/s_advsound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_advsound.cpp b/src/s_advsound.cpp index 67a3946b2..d10f7aa3c 100644 --- a/src/s_advsound.cpp +++ b/src/s_advsound.cpp @@ -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"; }