diff options
author | Filippos Karapetis | 2014-05-06 03:30:18 +0300 |
---|---|---|
committer | Filippos Karapetis | 2014-05-06 03:30:18 +0300 |
commit | 3adf1aba77bac2af95d5c7ea414cdcbcbdc35a3c (patch) | |
tree | 71a6647c688f9e4ff7376d31c7eedaf63b76d6d3 /engines/mads/nebular/nebular_scenes4.cpp | |
parent | 13bd409bbff3a88e0bf89e9a069f340aed9f4b44 (diff) | |
download | scummvm-rg350-3adf1aba77bac2af95d5c7ea414cdcbcbdc35a3c.tar.gz scummvm-rg350-3adf1aba77bac2af95d5c7ea414cdcbcbdc35a3c.tar.bz2 scummvm-rg350-3adf1aba77bac2af95d5c7ea414cdcbcbdc35a3c.zip |
MADS: Add a sanity check to scene 413
Diffstat (limited to 'engines/mads/nebular/nebular_scenes4.cpp')
-rw-r--r-- | engines/mads/nebular/nebular_scenes4.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/nebular/nebular_scenes4.cpp b/engines/mads/nebular/nebular_scenes4.cpp index 980f77004a..1bb53ed857 100644 --- a/engines/mads/nebular/nebular_scenes4.cpp +++ b/engines/mads/nebular/nebular_scenes4.cpp @@ -4027,10 +4027,10 @@ void Scene413::enter() { } void Scene413::step() { - if (_scene->_activeAnimation->getCurrentFrame() == 38) + if (_scene->_activeAnimation && _scene->_activeAnimation->getCurrentFrame() == 38) _scene->_activeAnimation->setCurrentFrame(37); - if ((_scene->_activeAnimation->getCurrentFrame() == 21) && _canMove) { + if (_scene->_activeAnimation && _scene->_activeAnimation->getCurrentFrame() == 21 && _canMove) { _vm->_sound->command(27); _canMove = false; } |