Merge pull request #240 from devnexen/master

name field is not a pointer.
This commit is contained in:
Yamagi 2017-10-02 17:59:52 +02:00 committed by GitHub
commit c4a86ecb49

View file

@ -669,7 +669,7 @@ S_StartSound(vec3_t origin, int entnum, int entchannel, sfx_t *sfx,
ps->fixed_origin = false;
}
if (sfx->name)
if (sfx->name[0])
{
// with !fixed we have all sounds related directly to player,
// e.g. players fire, pain, menu