]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svvm_cmds.c
fix VM_sprintf "%s" conversion when passed ""
[xonotic/darkplaces.git] / svvm_cmds.c
index f0954e821130e9e9187967b6de45f01d2d86919a..42d29acfb8083df8d28a3d7220529b69f3aedaa1 100644 (file)
@@ -2627,7 +2627,7 @@ void SV_GetEntityMatrix (prvm_edict_t *ent, matrix4x4_t *out, qboolean viewmatri
 int SV_GetEntityLocalTagMatrix(prvm_edict_t *ent, int tagindex, matrix4x4_t *out)
 {
        dp_model_t *model;
-       if (tagindex >= 0 && (model = SV_GetModelFromEdict(ent)) && model->num_bones)
+       if (tagindex >= 0 && (model = SV_GetModelFromEdict(ent)) && model->animscenes)
        {
                VM_GenerateFrameGroupBlend(ent->priv.server->framegroupblend, ent);
                VM_FrameBlendFromFrameGroupBlend(ent->priv.server->frameblend, ent->priv.server->framegroupblend, model);