From fe01f3a03f879d518f2952025aad5b724d8ad54a Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 16 Apr 2006 14:07:55 +0000 Subject: Ignore the 'virtual' HE entries at the end of gameVariantsTable (this fixes an odd detector problem) svn-id: r21944 --- engines/scumm/plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/scumm/plugin.cpp b/engines/scumm/plugin.cpp index a7b27b4856..a389972236 100644 --- a/engines/scumm/plugin.cpp +++ b/engines/scumm/plugin.cpp @@ -1385,7 +1385,7 @@ DetectedGameList Engine_SCUMM_detectGames(const FSList &fslist) { // HACK: For now we only consider the first ("default") variant for // gameids that have multiple variants. In a future version of the // detector code, this may change. - if (0 == strcmp(lastGameid, g->gameid)) + if (0 == strcmp(lastGameid, g->gameid) || *(g->gameid) == 0) continue; lastGameid = g->gameid; -- cgit v1.2.3