From af1fff9cf602bb61539cdc4da9effe9058af26ff Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 19 Oct 2024 17:22:44 +0300 Subject: fixes #4749 (Pascal plugins are not detected) --- src/mir_app/src/CMPluginBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3