[Scummvm-git-logs] scummvm master -> 0a8e9019cbcc0e940f575f79e68f122d216fa198
AndywinXp
noreply at scummvm.org
Fri Nov 29 19:36:41 UTC 2024
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:
0a8e9019cb SCUMM: HE: Fix crash on games without "extra" detection field
Commit: 0a8e9019cbcc0e940f575f79e68f122d216fa198
https://github.com/scummvm/scummvm/commit/0a8e9019cbcc0e940f575f79e68f122d216fa198
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-11-29T20:36:36+01:00
Commit Message:
SCUMM: HE: Fix crash on games without "extra" detection field
Changed paths:
engines/scumm/metaengine.cpp
diff --git a/engines/scumm/metaengine.cpp b/engines/scumm/metaengine.cpp
index 6269c2f6702..0caf06fe0c1 100644
--- a/engines/scumm/metaengine.cpp
+++ b/engines/scumm/metaengine.cpp
@@ -373,7 +373,7 @@ Common::Error ScummMetaEngine::createInstance(OSystem *syst, Engine **engine,
return Common::kUnsupportedGameidError;
}
- if (res.game.heversion != 0 && !strcmp(res.extra, "Steam")) {
+ if (res.game.heversion != 0 && (res.extra && !strcmp(res.extra, "Steam"))) {
if (!strcmp(res.game.gameid, "baseball") ||
!strcmp(res.game.gameid, "soccer") ||
!strcmp(res.game.gameid, "baseball2001") ||
More information about the Scummvm-git-logs
mailing list