summaryrefslogtreecommitdiff
path: root/src/modules/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/plugins')
-rw-r--r--src/modules/plugins/newplugins.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp
index 4b16fbeb5c..1464c53e1d 100644
--- a/src/modules/plugins/newplugins.cpp
+++ b/src/modules/plugins/newplugins.cpp
@@ -316,8 +316,10 @@ LBL_Ok:
void Plugin_Uninit(pluginEntry* p)
{
// if the basic API check had passed, call Unload if Load(void) was ever called
- if (p->pclass & PCLASS_LOADED)
+ if (p->pclass & PCLASS_LOADED) {
p->bpi.Unload();
+ p->pclass &= ~PCLASS_LOADED;
+ }
// release the library
HINSTANCE hInst = p->bpi.hInst;