diff options
Diffstat (limited to 'engines/sword1')
-rw-r--r-- | engines/sword1/sword1.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index cba1e97bb8..fd49b0de06 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -117,8 +117,10 @@ DetectedGameList Engine_SWORD1_detectGames(const FSList &fslist) { return detectedGames; } -Engine *Engine_SWORD1_create(OSystem *syst) { - return new SwordEngine(syst); +PluginError Engine_SWORD1_create(OSystem *syst, Engine **engine) { + assert(engine); + *engine = new SwordEngine(syst); + return kNoError; } REGISTER_PLUGIN(SWORD1, "Broken Sword"); |