summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/CMPluginBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/CMPluginBase.cpp b/src/mir_app/src/CMPluginBase.cpp
index 79bfcbc7ae..d1595c32b6 100644
--- a/src/mir_app/src/CMPluginBase.cpp
+++ b/src/mir_app/src/CMPluginBase.cpp
@@ -123,7 +123,7 @@ static void wipePluginData(CMPluginBase *pPlugin)
EXTERN_C MIR_APP_DLL(void) RegisterPlugin(CMPluginBase *pPlugin)
{
if (pPlugin->getInst() != nullptr)
- g_arPlugins.insert(pPlugin);
+ g_pLastPlugin = pPlugin;
}
// emulates the call of CMPluginBase::~CMPluginBase for Pascal plugins