diff --git a/core/logic/ExtensionSys.cpp b/core/logic/ExtensionSys.cpp index 988b7c92..9b6a3d3a 100644 --- a/core/logic/ExtensionSys.cpp +++ b/core/logic/ExtensionSys.cpp @@ -342,7 +342,7 @@ void CExtension::MarkAllLoaded() void CExtension::AddPlugin(CPlugin *pPlugin) { /* Unfortunately we have to do this :( */ - if (m_Dependents.find(pPlugin) != m_Dependents.end()) + if (m_Dependents.find(pPlugin) == m_Dependents.end()) { m_Dependents.push_back(pPlugin); }