diff options
Diffstat (limited to 'src/modules/plugins')
-rw-r--r-- | src/modules/plugins/newplugins.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index 1464c53e1d..38f583b12a 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -359,14 +359,15 @@ int Plugin_UnloadDyn(pluginEntry* p) KillModuleHotkeys(hLangpack);
KillModuleSounds(hLangpack);
}
-
- // release default plugin
+
+ Plugin_Uninit(p);
+
+ // load default plugins instead of the unloaded one
if ( !(p->pclass & PCLASS_CORE))
for (int i=0; i < SIZEOF(pluginDefault); i++)
if (pluginDefault[i].pImpl == p)
LoadCorePlugin( pluginDefault[i] );
- Plugin_Uninit(p);
return TRUE;
}
|