Modified: trunk/darkplaces/model_shared.c
===================================================================
--- trunk/darkplaces/model_shared.c	2009-03-11 09:08:04 UTC (rev 8796)
+++ trunk/darkplaces/model_shared.c	2009-03-11 13:11:59 UTC (rev 8797)
@@ -2545,7 +2545,7 @@
 	}
 
 	// export SMD if possible (only for skeletal models)
-	if (mod->surfmesh.num_triangles && mod->num_poses)
+	if (mod->surfmesh.num_triangles && mod->num_bones)
 	{
 		dpsnprintf(outname, sizeof(outname), "%s_decompiled/ref1.smd", basename);
 		Mod_Decompile_SMD(mod, outname, 0, 1, true);

