Skip to content

Commit

Permalink
MORTVIELLE: Add missing check on shouldQuit() (which fixes CID 1063228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Nov 9, 2013
1 parent ebc32de commit 4095ae1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/mortevielle/utils.cpp
Expand Up @@ -2933,7 +2933,9 @@ void MortevielleEngine::testKey(bool d) {

do {
_mouse.getMousePosition(x, y, click);
keyPressed();
quest = keyPressed();
if (quest && shouldQuit())
return;
} while (click);

// Event loop
Expand Down

0 comments on commit 4095ae1

Please sign in to comment.