aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2013-09-09 21:21:39 +0300
committerEugene Sandulenko2013-09-09 21:21:39 +0300
commit18bbf4a2eb6e972175c5b503ce3e7728c3059ace (patch)
tree031c9b9e00fc094d0c19f854a9a4d3e00b8b780f /engines/fullpipe
parent33f975a446325d37947c5634b83a26cbb622db5f (diff)
downloadscummvm-rg350-18bbf4a2eb6e972175c5b503ce3e7728c3059ace.tar.gz
scummvm-rg350-18bbf4a2eb6e972175c5b503ce3e7728c3059ace.tar.bz2
scummvm-rg350-18bbf4a2eb6e972175c5b503ce3e7728c3059ace.zip
FULLPIPE: Fix logical error. CID 1086776
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/scenes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index 0c06e03b75..f4e771af56 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -979,7 +979,7 @@ int global_messageHandler3(ExCommand *cmd) {
cmd->_messageKind = 0;
return result;
}
- if (ani2->canInteractAny(pic, cmd->_keyCode)) {
+ if (!ani2 || ani2->canInteractAny(pic, cmd->_keyCode)) {
if (!ani2 || (ani2->isIdle() && !(ani2->_flags & 0x80) && !(ani2->_flags & 0x100)))
handleObjectInteraction(ani2, pic, cmd->_keyCode);
return 1;