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();
return true;
default:
if (keyState.ascii >= 0 && keyState.ascii <= 127 &&
keyState.ascii != Common::KEYCODE_TAB) {
if (keyState.ascii <= 127 && keyState.ascii != Common::KEYCODE_TAB) {
if (_textInput.handleKey(keyState.ascii))
// Text line finished, so process line
textLineEntered(_textInput.getText());