SAGA: Add missing break statement and add fall through comment
This commit is contained in:
parent
b840320c5b
commit
c2e633d349
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue