name field is not a pointer.

This commit is contained in:
David Carlier 2017-09-26 21:16:49 +01:00
parent b1e3c90a51
commit 54f9798fc8

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