From 6e5b70f5e9f8690b467ea8837e727e1048838788 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 12 Jun 2007 12:22:25 +0000 Subject: Patch #1733764: "Fallback detection patch". GSoC student. svn-id: r27375 --- engines/gob/detection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/gob') diff --git a/engines/gob/detection.cpp b/engines/gob/detection.cpp index 6b37d05e98..9dfbf534d4 100644 --- a/engines/gob/detection.cpp +++ b/engines/gob/detection.cpp @@ -1150,7 +1150,9 @@ REGISTER_PLUGIN(GOB, "Gob Engine", "Goblins Games (C) Coktel Vision"); namespace Gob { bool GobEngine::detectGame() { - const GOBGameDescription *gd = (const GOBGameDescription *)Common::AdvancedDetector::detectBestMatchingGame(detectionParams); + Common::EncapsulatedADGameDesc encapsulatedDesc = Common::AdvancedDetector::detectBestMatchingGame(detectionParams); + const GOBGameDescription *gd = (const GOBGameDescription *)(encapsulatedDesc.realDesc); + if (gd == 0) return false; -- cgit v1.2.3