From 4cf4b5cedbda65e0797e31b1ec0bcfa49aeb00d0 Mon Sep 17 00:00:00 2001 From: Andrey Osin Date: Tue, 19 Dec 2023 19:03:57 +0300 Subject: [PATCH] fix cb module deinit --- src/be_cb_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/be_cb_module.c b/src/be_cb_module.c index 709cd30..4ffb8cd 100644 --- a/src/be_cb_module.c +++ b/src/be_cb_module.c @@ -276,7 +276,7 @@ void be_cb_deinit(bvm *vm) { for (int32_t slot = 0; slot < BE_MAX_CB; slot++) { if (be_cb_hooks[slot].vm == vm) { be_cb_hooks[slot].vm = NULL; - be_cb_hooks[slot].f.type == BE_NIL; + be_cb_hooks[slot].f.type = BE_NIL; } } // remove the vm gen_cb for this vm