BGE Animations: Making sure the Action Actuator has a valid action before attempting to play.

This commit is contained in:
Mitchell Stokes 2011-06-16 01:59:50 +00:00
parent 47b061609d
commit 65af1dcecd

@ -152,6 +152,10 @@ bool BL_ActionActuator::Update(double curtime, bool frame)
short play_mode = BL_Action::ACT_MODE_PLAY;
float start = m_startframe, end = m_endframe;
// If we don't have an action, we can't do anything
if (!m_action)
return false;
// Don't do anything if we're not "active"
if (!frame)
return true;