]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
sv.edicts (and related things) are now dynamically reallocated as more edicts are...
[xonotic/darkplaces.git] / cl_main.c
index fa991693416379df505f95f321c7786c86bf5bd4..ce00b637c92814b5accb451bb556e7f8c080586c 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1572,7 +1572,7 @@ static void CL_PModel_f (void)
        }
 
        host_client->pmodel = i;
-       if ((val = GETEDICTFIELDVALUE(host_client->edict, eval_pmodel)))
+       if ((val = GETEDICTFIELDVALUE(EDICT_NUM(host_client->edictnumber), eval_pmodel)))
                val->_float = i;
 }