diff options
author | Bastien Bouclet | 2011-07-22 19:53:18 +0200 |
---|---|---|
committer | Bastien Bouclet | 2011-08-06 15:48:12 +0200 |
commit | 3384f9146c91bc1803ae8c4eff5eca2d3a102832 (patch) | |
tree | a723a231181ed2ee07d387d61f0178b52c4ef4cc /engines/kyra | |
parent | 192b245d51ec3db542d9492f1f42154b730a32e4 (diff) | |
download | scummvm-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.cpp | 2 |
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)) |