[Scummvm-git-logs] scummvm branch-2-9 -> 58f3f0ee80fe8ceed1374112988a82e3611bf5d1
AndywinXp
noreply at scummvm.org
Fri Nov 29 19:38:00 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:
58f3f0ee80 SCUMM: HE: Fix crash on games without "extra" detection field
Commit: 58f3f0ee80fe8ceed1374112988a82e3611bf5d1
https://github.com/scummvm/scummvm/commit/58f3f0ee80fe8ceed1374112988a82e3611bf5d1
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-11-29T20:37:52+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 fa354c6849a..a1e882f256e 100644
--- a/engines/scumm/metaengine.cpp
+++ b/engines/scumm/metaengine.cpp
@@ -377,7 +377,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