From c2e633d3494335ec00bbf719aff7de65e58f2e38 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 11 Aug 2017 21:25:36 +0200 Subject: SAGA: Add missing break statement and add fall through comment --- engines/saga/interface.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/saga/interface.cpp') 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) { -- cgit v1.2.3