From f182457a2c06e0a8791f98aad243018a951a7101 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 5 Apr 2005 22:23:17 +0000 Subject: [PATCH] fixed an error case in S_StartSound git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5161 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2