From 9714cce46ff51036913214cb833f5396357529b5 Mon Sep 17 00:00:00 2001 From: Littleboy Date: Mon, 12 Aug 2013 23:25:03 -0400 Subject: LASTEXPRESS: Fix unchecked return value (CID1003854) --- engines/lastexpress/debug.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3