aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-20 22:37:35 -0400
committerPaul Gilbert2017-08-20 22:37:35 -0400
commitca05dffec507de3a614e41c68310e08827db86f4 (patch)
treed3922aaa226fadfd38fa120d2a30b52a30e81eb5
parent445e12f7ca05ab3b1c8b80d9f562852769a51220 (diff)
downloadscummvm-rg350-ca05dffec507de3a614e41c68310e08827db86f4.tar.gz
scummvm-rg350-ca05dffec507de3a614e41c68310e08827db86f4.tar.bz2
scummvm-rg350-ca05dffec507de3a614e41c68310e08827db86f4.zip
TITANIC: Fix Coverity suggestion in CPetConversations
-rw-r--r--engines/titanic/pet_control/pet_conversations.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_conversations.cpp b/engines/titanic/pet_control/pet_conversations.cpp
index 6d249a388d..c228c30fa5 100644
--- a/engines/titanic/pet_control/pet_conversations.cpp
+++ b/engines/titanic/pet_control/pet_conversations.cpp
@@ -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());