From d823e5f524403e5c278d3c863e93bac4b1d8d2ce Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 6 Apr 2022 00:51:18 +0100 Subject: Fix some egregious and sloppy mistakes Thanks Aciidz and Bill for spotting these. Lesson (ostensibly) learned: Don't program while sleep-deprived! --- src/sst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sst.c') 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. -- cgit v1.2.3