aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorBastien Bouclet2011-07-22 19:53:18 +0200
committerBastien Bouclet2011-08-06 15:48:12 +0200
commit3384f9146c91bc1803ae8c4eff5eca2d3a102832 (patch)
treea723a231181ed2ee07d387d61f0178b52c4ef4cc /engines/kyra
parent192b245d51ec3db542d9492f1f42154b730a32e4 (diff)
downloadscummvm-rg350-3384f9146c91bc1803ae8c4eff5eca2d3a102832.tar.gz
scummvm-rg350-3384f9146c91bc1803ae8c4eff5eca2d3a102832.tar.bz2
scummvm-rg350-3384f9146c91bc1803ae8c4eff5eca2d3a102832.zip
KYRA: Don't loose the next event when leaving the text input event loop.
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/gui.cpp b/engines/kyra/gui.cpp
index 29cbe20b23..402912b726 100644
--- a/engines/kyra/gui.cpp
+++ b/engines/kyra/gui.cpp
@@ -415,7 +415,7 @@ void GUI::checkTextfieldInput() {
bool running = true;
int keys = 0;
- while (_vm->_eventMan->pollEvent(event) && running) {
+ while (running && _vm->_eventMan->pollEvent(event)) {
switch (event.type) {
case Common::EVENT_KEYDOWN:
if (event.kbd.keycode == Common::KEYCODE_q && event.kbd.hasFlags(Common::KBD_CTRL))