aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/plugins.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp
index 023f2f3bb3..f6bbeacf74 100644
--- a/base/plugins.cpp
+++ b/base/plugins.cpp
@@ -515,7 +515,6 @@ PlainGameDescriptor EngineManager::findGameInLoadedPlugins(const Common::String
DetectionResults EngineManager::detectGames(const Common::FSList &fslist) const {
DetectedGames candidates;
- Common::String path = fslist.begin()->getParent().getPath();
PluginList plugins;
PluginList::const_iterator iter;
PluginManager::instance().loadFirstPlugin();
@@ -529,7 +528,7 @@ DetectionResults EngineManager::detectGames(const Common::FSList &fslist) const
for (uint i = 0; i < engineCandidates.size(); i++) {
engineCandidates[i].engineName = metaEngine.getName();
- engineCandidates[i].path = path;
+ engineCandidates[i].path = fslist.begin()->getParent().getPath();
candidates.push_back(engineCandidates[i]);
}