aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress
diff options
context:
space:
mode:
authorLittleboy2013-08-12 23:18:16 -0400
committerLittleboy2013-09-05 22:51:33 -0400
commit20745e0b3e6a7a433048890c2c2790c3245e802d (patch)
treede0bf5e70fb0265110b55e8e3e026329f2d50851 /engines/lastexpress
parent041aa50cb5f1fddf2efb6c65b232d051cce8b633 (diff)
downloadscummvm-rg350-20745e0b3e6a7a433048890c2c2790c3245e802d.tar.gz
scummvm-rg350-20745e0b3e6a7a433048890c2c2790c3245e802d.tar.bz2
scummvm-rg350-20745e0b3e6a7a433048890c2c2790c3245e802d.zip
LASTEXPRESS: Fix unchecked return value (CID1003850)
Diffstat (limited to 'engines/lastexpress')
-rw-r--r--engines/lastexpress/debug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/lastexpress/debug.cpp b/engines/lastexpress/debug.cpp
index db3a3e3962..73e342305a 100644
--- a/engines/lastexpress/debug.cpp
+++ b/engines/lastexpress/debug.cpp
@@ -487,7 +487,9 @@ bool Debugger::cmdPlaySeq(int argc, const char **argv) {
// Handle right-click to interrupt sequence
Common::Event ev;
- _engine->getEventManager()->pollEvent(ev);
+ if (!_engine->getEventManager()->pollEvent(ev))
+ break;
+
if (ev.type == Common::EVENT_RBUTTONUP)
break;