aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/interface.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-11 21:25:36 +0200
committerEugene Sandulenko2017-08-11 21:25:36 +0200
commitc2e633d3494335ec00bbf719aff7de65e58f2e38 (patch)
treeee291ea7a0e18729e2fca0f88f6e12fcc34b0357 /engines/saga/interface.cpp
parentb840320c5bc532973bb622bbe5c34b1284734b63 (diff)
downloadscummvm-rg350-c2e633d3494335ec00bbf719aff7de65e58f2e38.tar.gz
scummvm-rg350-c2e633d3494335ec00bbf719aff7de65e58f2e38.tar.bz2
scummvm-rg350-c2e633d3494335ec00bbf719aff7de65e58f2e38.zip
SAGA: Add missing break statement and add fall through comment
Diffstat (limited to 'engines/saga/interface.cpp')
-rw-r--r--engines/saga/interface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp
index c663313f01..9dcc8d9137 100644
--- a/engines/saga/interface.cpp
+++ b/engines/saga/interface.cpp
@@ -1169,6 +1169,7 @@ void Interface::processStatusTextInput(Common::KeyState keystate) {
}
_statusTextInputPos--;
_statusTextInputString[_statusTextInputPos] = 0;
+ break;
default:
if (_statusTextInputPos >= STATUS_TEXT_INPUT_MAX - 1) { // -1 because of the null termination
break;
@@ -1202,6 +1203,7 @@ bool Interface::processTextInput(Common::KeyState keystate) {
break;
}
_textInputPos--;
+ // fall through
case Common::KEYCODE_DELETE:
if (_textInputPos <= _textInputStringLength) {
if (_textInputPos != 1) {