[Scummvm-git-logs] scummvm master -> ca05dffec507de3a614e41c68310e08827db86f4

dreammaster dreammaster at scummvm.org
Mon Aug 21 04:37:45 CEST 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
ca05dffec5 TITANIC: Fix Coverity suggestion in CPetConversations


Commit: ca05dffec507de3a614e41c68310e08827db86f4
    https://github.com/scummvm/scummvm/commit/ca05dffec507de3a614e41c68310e08827db86f4
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-08-20T22:37:35-04:00

Commit Message:
TITANIC: Fix Coverity suggestion in CPetConversations

Changed paths:
    engines/titanic/pet_control/pet_conversations.cpp


diff --git a/engines/titanic/pet_control/pet_conversations.cpp b/engines/titanic/pet_control/pet_conversations.cpp
index 6d249a3..c228c30 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());





More information about the Scummvm-git-logs mailing list