aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorLittleboy2013-08-12 23:25:03 -0400
committerLittleboy2013-09-05 22:51:34 -0400
commit9714cce46ff51036913214cb833f5396357529b5 (patch)
treed5e91b9027a60a1aab4d82d09965e6c43f1b3706 /engines
parent20745e0b3e6a7a433048890c2c2790c3245e802d (diff)
downloadscummvm-rg350-9714cce46ff51036913214cb833f5396357529b5.tar.gz
scummvm-rg350-9714cce46ff51036913214cb833f5396357529b5.tar.bz2
scummvm-rg350-9714cce46ff51036913214cb833f5396357529b5.zip
LASTEXPRESS: Fix unchecked return value (CID1003854)
Diffstat (limited to 'engines')
-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 73e342305a..7c83aff93d 100644
--- a/engines/lastexpress/debug.cpp
+++ b/engines/lastexpress/debug.cpp
@@ -598,7 +598,9 @@ bool Debugger::cmdPlaySbe(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;