aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/plugin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/scumm/plugin.cpp b/engines/scumm/plugin.cpp
index ae4356d2af..d02b1da487 100644
--- a/engines/scumm/plugin.cpp
+++ b/engines/scumm/plugin.cpp
@@ -1278,7 +1278,7 @@ static bool generateDetectName(const GameSettings &g, int method, char *detectNa
case 5:
// FIXME: Fingolfin asks: For which games is this case used?
// Please document this. Also: Why was this case missing in
- // Engine_SCUMM_create ?
+ // Engine_SCUMM_create ?
strcpy(detectName, g.gameid);
break;
case 6:
@@ -1296,6 +1296,9 @@ static bool generateDetectName(const GameSettings &g, int method, char *detectNa
return false;
}
+ if (!detectName[0])
+ return false;
+
return true;
}