]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
fix typo
[xonotic/darkplaces.git] / cl_main.c
index 8d3468ea2f1842c936b14132ba3567c21b4a2860..189eddadfac9f410d69d358ac73dfdd44f723568 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -919,7 +919,7 @@ void CL_UpdateNetworkEntity(entity_t *e, int recursionlimit, qboolean interpolat
                e->render.flags |= t->render.flags & (RENDER_EXTERIORMODEL | RENDER_VIEWMODEL);
                // if a valid tagindex is used, make it relative to that tag instead
                // FIXME: use a model function to get tag info (need to handle skeletal)
-               if (e->state_current.tagentity && e->state_current.tagindex >= 1 && e->render.model)
+               if (e->state_current.tagentity && e->state_current.tagindex >= 1 && t->render.model)
                {
                        if(!CL_BlendTagMatrix(&t->render, e->state_current.tagindex - 1, &blendmatrix)) // i.e. no error
                        {