aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorLittleboy2013-08-12 23:04:31 -0400
committerLittleboy2013-09-05 22:51:31 -0400
commita496ade05958afda3466c2dcc057b276152d05a1 (patch)
treead72b19dec00e889732ad824b46672e6c2a8ed96 /engines
parent3591f559ab15820c97818b8a32cf52c3eadc4237 (diff)
downloadscummvm-rg350-a496ade05958afda3466c2dcc057b276152d05a1.tar.gz
scummvm-rg350-a496ade05958afda3466c2dcc057b276152d05a1.tar.bz2
scummvm-rg350-a496ade05958afda3466c2dcc057b276152d05a1.zip
LASTEXPRESS: Fix unchecked return value in LastExpressEngine::pollEvents() (CID1004167)
Diffstat (limited to 'engines')
-rw-r--r--engines/lastexpress/lastexpress.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lastexpress/lastexpress.cpp b/engines/lastexpress/lastexpress.cpp
index 01d2634dec..bc1624d171 100644
--- a/engines/lastexpress/lastexpress.cpp
+++ b/engines/lastexpress/lastexpress.cpp
@@ -165,10 +165,10 @@ Common::Error LastExpressEngine::run() {
void LastExpressEngine::pollEvents() {
Common::Event ev;
- _eventMan->pollEvent(ev);
+ if (!_eventMan->pollEvent(ev))
+ return;
switch (ev.type) {
-
case Common::EVENT_LBUTTONUP:
getGameLogic()->getGameState()->getGameFlags()->mouseLeftClick = true;
break;