From: havoc Date: Tue, 5 Apr 2005 22:23:17 +0000 (+0000) Subject: fixed an error case in S_StartSound X-Git-Tag: xonotic-v0.1.0preview~5016 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=f182457a2c06e0a8791f98aad243018a951a7101;p=xonotic%2Fdarkplaces.git fixed an error case in S_StartSound git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5161 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_main.c b/snd_main.c index f7dd6ee4..9e265328 100644 --- a/snd_main.c +++ b/snd_main.c @@ -574,7 +574,7 @@ int S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float f return -1; } - if (entnum >= cl_max_entities) + if (entnum && entnum >= cl_max_entities) CL_ExpandEntities(entnum); // Pick a channel to play on