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

elasota noreply at scummvm.org
Mon Jul 4 07:21:01 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:
b014d5aa0e MTROPOLIS: Fix bad null check


Commit: b014d5aa0e02fda1bcf72cd9f8e7b31a417aed12
    https://github.com/scummvm/scummvm/commit/b014d5aa0e02fda1bcf72cd9f8e7b31a417aed12
Author: elasota (ejlasota at gmail.com)
Date: 2022-07-04T03:20:44-04:00

Commit Message:
MTROPOLIS: Fix bad null check

Changed paths:
    engines/mtropolis/hacks.cpp


diff --git a/engines/mtropolis/hacks.cpp b/engines/mtropolis/hacks.cpp
index 24c333397d3..824127a5957 100644
--- a/engines/mtropolis/hacks.cpp
+++ b/engines/mtropolis/hacks.cpp
@@ -543,7 +543,7 @@ void ObsidianAutoSaveSceneTransitionHooks::onSceneTransitionEnded(Runtime *runti
 			}
 		}
 
-		if (saveVar || saveVar->isModifier()) {
+		if (saveVar && saveVar->isModifier()) {
 			Modifier *modifier = static_cast<Modifier *>(saveVar.get());
 			Common::SharedPtr<ModifierSaveLoad> saveLoad = modifier->getSaveLoad();
 




More information about the Scummvm-git-logs mailing list