From 47626d654f2493cddf2126cd5e08e8be7efb67a8 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Fri, 4 Dec 2020 07:44:24 +0100 Subject: Clarify comment. --- src/plugincontainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugincontainer.cpp') diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index 3579a0d3..9da467a4 100644 --- a/src/plugincontainer.cpp +++ b/src/plugincontainer.cpp @@ -855,8 +855,8 @@ void PluginContainer::unloadPlugin(MOBase::IPlugin* plugin, QObject* object) unregisterGame(game); } - // We need to do this BEFORE unloading from the proxy otherwise the - // qobject_cast won't work. + // We need to remove from the m_Plugins maps BEFORE unloading from the proxy + // otherwise the qobject_cast to check the plugin type will not work. bf::for_each(m_Plugins, [object](auto& t) { using type = typename std::decay_t::value_type; -- cgit v1.3.1