diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-04-06 00:51:18 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-04-06 00:51:18 +0100 |
commit | d823e5f524403e5c278d3c863e93bac4b1d8d2ce (patch) | |
tree | 8b45cd6c32c685d109f4cc4e14d4149191f0899a /src/sst.c | |
parent | 9f8ea7c75f1b0a114f60bc6b7a95fa51857e8a96 (diff) |
Fix some egregious and sloppy mistakes
Thanks Aciidz and Bill for spotting these.
Lesson (ostensibly) learned: Don't program while sleep-deprived!
Diffstat (limited to 'src/sst.c')
-rw-r--r-- | src/sst.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |