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

digitall noreply at scummvm.org
Mon Nov 28 01:29:55 UTC 2022


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:
ad9f0e8bd8 MTROPOLIS: Fix GCC Compiler Warning


Commit: ad9f0e8bd8f54aa6321f318e27d12bbb67c70c35
    https://github.com/scummvm/scummvm/commit/ad9f0e8bd8f54aa6321f318e27d12bbb67c70c35
Author: D G Turner (digitall at scummvm.org)
Date: 2022-11-28T01:28:04Z

Commit Message:
MTROPOLIS: Fix GCC Compiler Warning

Changed paths:
    engines/mtropolis/modifiers.cpp


diff --git a/engines/mtropolis/modifiers.cpp b/engines/mtropolis/modifiers.cpp
index 4db195f4544..0e348b809e2 100644
--- a/engines/mtropolis/modifiers.cpp
+++ b/engines/mtropolis/modifiers.cpp
@@ -2390,7 +2390,7 @@ Modifier *CompoundVariableModifier::findChildByName(Runtime *runtime, const Comm
 	if (runtime->getHacks().mtiVariableReferencesHack) {
 		const Common::String &myName = getName();
 
-		if (myName.size() == 1 && myName == "a" || myName == "b" || myName == "c" || myName == "d") {
+		if (myName.size() == 1 && (myName == "a" || myName == "b" || myName == "c" || myName == "d")) {
 			Project *project = runtime->getProject();
 			Modifier *modifier = project->findGlobalVarWithName(MTropolis::toCaseInsensitive(name)).get();
 




More information about the Scummvm-git-logs mailing list