aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2014-05-06 03:30:18 +0300
committerFilippos Karapetis2014-05-06 03:30:18 +0300
commit3adf1aba77bac2af95d5c7ea414cdcbcbdc35a3c (patch)
tree71a6647c688f9e4ff7376d31c7eedaf63b76d6d3 /engines
parent13bd409bbff3a88e0bf89e9a069f340aed9f4b44 (diff)
downloadscummvm-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')
-rw-r--r--engines/mads/nebular/nebular_scenes4.cpp4
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;
}