mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-30 07:31:13 +00:00
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:
parent
c3219a8ba5
commit
c6a027d3d4
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue