diff options
Diffstat (limited to 'engines/gob/detection.cpp')
| -rw-r--r-- | engines/gob/detection.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
| 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; | 
