aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-06 20:55:53 -0500
committerPaul Gilbert2015-03-06 20:55:53 -0500
commita22d7f2d5f27701766dbf36d50e0a31ea7b26d69 (patch)
treee8c04ef8ed55525bfbe2750c4884d525b83d0e43 /engines/mads/nebular
parent119c179d5aa432a0dc3e1b522639478cd5377b83 (diff)
downloadscummvm-rg350-a22d7f2d5f27701766dbf36d50e0a31ea7b26d69.tar.gz
scummvm-rg350-a22d7f2d5f27701766dbf36d50e0a31ea7b26d69.tar.bz2
scummvm-rg350-a22d7f2d5f27701766dbf36d50e0a31ea7b26d69.zip
MADS: Fix crash on leaving planeet
Diffstat (limited to 'engines/mads/nebular')
-rw-r--r--engines/mads/nebular/nebular_scenes8.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/mads/nebular/nebular_scenes8.cpp b/engines/mads/nebular/nebular_scenes8.cpp
index 64b6c26bbc..4b8d7d5dd8 100644
--- a/engines/mads/nebular/nebular_scenes8.cpp
+++ b/engines/mads/nebular/nebular_scenes8.cpp
@@ -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;
}