diff --git a/src/lua_hooklib.c b/src/lua_hooklib.c index e6faaef01..1aadea9a3 100644 --- a/src/lua_hooklib.c +++ b/src/lua_hooklib.c @@ -1698,7 +1698,7 @@ UINT8 LUAh_ShouldExplode(player_t *player, mobj_t *inflictor, mobj_t *source) for (hookp = roothook; hookp; hookp = hookp->next) { - if (hookp->type == hook_ShouldExplode) + if (hookp->type != hook_ShouldExplode) continue; ps_lua_mobjhooks.value.i++;