A fix for the gibfilter, so it doesn't crash when in use.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1286 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-08 01:48:07 +00:00
parent c3219a8ba5
commit c6a027d3d4

View file

@ -2119,10 +2119,10 @@ void SV_GibFilterAdd(char *modelname, int min, int max)
int i; int i;
gibfilter_t *gf; gibfilter_t *gf;
for (i=1; *sv.model_precache[i] ; i++) for (i=1; sv.model_precache[i] ; i++)
if (!strcmp(sv.model_precache[i], modelname)) if (!strcmp(sv.model_precache[i], modelname))
break; break;
if (!*sv.model_precache[i]) if (!sv.model_precache[i])
{ {
Con_Printf("Filtered model \"%s\" was not precached\n", modelname); Con_Printf("Filtered model \"%s\" was not precached\n", modelname);
return; //model not in use. return; //model not in use.