aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorEugene Sandulenko2007-06-12 12:22:25 +0000
committerEugene Sandulenko2007-06-12 12:22:25 +0000
commit6e5b70f5e9f8690b467ea8837e727e1048838788 (patch)
tree99421afdf99a4b66be53c398c048133bc79c614e /engines/cruise
parent72cfa9d8293aa897a89d577d9844a2a286d8f0e2 (diff)
downloadscummvm-rg350-6e5b70f5e9f8690b467ea8837e727e1048838788.tar.gz
scummvm-rg350-6e5b70f5e9f8690b467ea8837e727e1048838788.tar.bz2
scummvm-rg350-6e5b70f5e9f8690b467ea8837e727e1048838788.zip
Patch #1733764: "Fallback detection patch". GSoC student.
svn-id: r27375
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/detection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cruise/detection.cpp b/engines/cruise/detection.cpp
index 7962f7a3f1..2ca83f4046 100644
--- a/engines/cruise/detection.cpp
+++ b/engines/cruise/detection.cpp
@@ -118,7 +118,8 @@ REGISTER_PLUGIN(CRUISE, "Cinematique evo 2 engine", "Cruise for a Corpse (C) Del
namespace Cruise {
bool CruiseEngine::initGame() {
- _gameDescription = (const CRUISEGameDescription *)Common::AdvancedDetector::detectBestMatchingGame(detectionParams);
+ Common::EncapsulatedADGameDesc encapsulatedDesc = Common::AdvancedDetector::detectBestMatchingGame(detectionParams);
+ _gameDescription = (const CRUISEGameDescription *)(encapsulatedDesc.realDesc);
return (_gameDescription != 0);
}