Index: trunk/src/gfx/keyframed_mesh.cc
===================================================================
--- trunk/src/gfx/keyframed_mesh.cc	(revision 158)
+++ trunk/src/gfx/keyframed_mesh.cc	(revision 159)
@@ -75,13 +75,13 @@
 }
 
-void keyframed_mesh::setup_animation( uint32 start, uint32 stop, uint32 fps, bool loop )
+void keyframed_mesh::setup_animation( uint32 start, uint32 count, uint32 fps, bool loop )
 {
 	m_start_frame   = start;
-	m_stop_frame    = stop;
+	m_stop_frame    = start+count-1;
 	m_looping       = loop;
 	m_fps           = fps;
-	m_active        = ( stop > start );
+	m_active        = count > 1;
 	m_last_frame    = start;
-	m_next_frame    = (stop > start ? start + 1 : start );
+	m_next_frame    = (count > 1 ? start + 1 : start );
 	m_interpolation = 0.0f;
 	m_time          = 0;
