Skip to content

Commit

Permalink
MADS: Fix crash on leaving planeet
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Mar 7, 2015
1 parent 119c179 commit a22d7f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/mads/nebular/nebular_scenes8.cpp
Expand Up @@ -1604,7 +1604,8 @@ void Scene810::enter() {
}

void Scene810::step() {
if ((_scene->_activeAnimation->getCurrentFrame() == 200) && _moveAllowed) {
if (_scene->_activeAnimation && (_scene->_activeAnimation->getCurrentFrame() == 200)
&& _moveAllowed) {
_scene->_sequences.addTimer(100, 70);
_moveAllowed = false;
}
Expand Down

0 comments on commit a22d7f2

Please sign in to comment.