summaryrefslogtreecommitdiffhomepage
path: root/src/sst.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sst.c')
-rw-r--r--src/sst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sst.c b/src/sst.c
index e9aa972..0a31796 100644
--- a/src/sst.c
+++ b/src/sst.c
@@ -306,7 +306,7 @@ static void do_unload(void) {
struct CPlugin **plugins = pluginhandler->plugins.m.mem;
int n = pluginhandler->plugins.sz;
for (struct CPlugin **pp = plugins; pp - plugins < n; ++pp) {
- if ((*pp)->theplugin = (void *)&plugin_obj) {
+ if ((*pp)->theplugin == (void *)&plugin_obj) {
// see comment in CPlugin above. setting this to the real handle
// right before the engine tries to unload us allows it to
// actually unload us instead of just doing nothing.