1
0
Fork 0
forked from fte/fteqw

Spike's fix to prevent a crash due to particles being loaded before the map.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2792 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-11-22 17:08:18 +00:00
parent e557658a34
commit dbb78b3825

View file

@ -1938,7 +1938,7 @@ int P_RunParticleEffectState (vec3_t org, vec3_t dir, float count, int typenum,
return 1;
// inwater check, switch only once
if (r_part_contentswitch.value && ptype->inwater >= 0)
if (r_part_contentswitch.value && ptype->inwater >= 0 && cl.worldmodel)
{
int cont;
cont = cl.worldmodel->funcs.PointContents(cl.worldmodel, org);