]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
fix stupid typo in GLSL shader
[xonotic/darkplaces.git] / cl_main.c
index 041247d1f8039d23d6449687e1b9833d2282f747..19d058e3d8ecbc08264698d778328488cfa05b1a 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -959,10 +959,11 @@ static void CL_RelinkNetworkEntities(void)
 
        // start on the entity after the world
        entitylinkframenumber++;
-       for (i = 1, ent = cl_entities + 1;i < MAX_EDICTS;i++, ent++)
+       for (i = 1;i < MAX_EDICTS;i++)
        {
                if (cl_entities_active[i])
                {
+                       ent = cl_entities + i;
                        if (ent->state_current.active)
                                CL_LinkNetworkEntity(ent);
                        else