TITANIC: Fix Coverity suggestion in CPetConversations

This commit is contained in:
Paul Gilbert 2017-08-20 22:37:35 -04:00
parent 445e12f7ca
commit ca05dffec5

View File

@ -478,8 +478,7 @@ bool CPetConversations::handleKey(const Common::KeyState &keyState) {
scrollToBottom(); scrollToBottom();
return true; return true;
default: default:
if (keyState.ascii >= 0 && keyState.ascii <= 127 && if (keyState.ascii <= 127 && keyState.ascii != Common::KEYCODE_TAB) {
keyState.ascii != Common::KEYCODE_TAB) {
if (_textInput.handleKey(keyState.ascii)) if (_textInput.handleKey(keyState.ascii))
// Text line finished, so process line // Text line finished, so process line
textLineEntered(_textInput.getText()); textLineEntered(_textInput.getText());