]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_particles.c
fixed a couple warnings
[xonotic/darkplaces.git] / cl_particles.c
index 7e4221b48937997b4e2226882e83b622862138a4..52b5c9b51d3a1f15a88222baa81875d92885cfc8 100644 (file)
@@ -431,11 +431,10 @@ void CL_SpawnDecalParticleForPoint(const vec3_t org, float maxdist, float size,
        int i;
        float bestfrac, bestorg[3], bestnormal[3];
        float frac, v[3], normal[3], org2[3];
-       void *besthitent;
 #ifdef WORKINGLQUAKE
-       void *hitent;
+       void *besthitent = NULL, *hitent;
 #else
-       entity_render_t *hitent;
+       entity_render_t *besthitent = NULL, *hitent;
 #endif
        bestfrac = 10;
        for (i = 0;i < 32;i++)