fix hooks lol! funny demorgan stuff happened here

This commit is contained in:
altalk23 2023-11-21 20:22:27 +03:00
parent 7796bfba9f
commit 5cf0f3c28c

View file

@ -465,7 +465,7 @@ Result<> Mod::Impl::disableHook(Hook* hook) {
}
Result<Hook*> Mod::Impl::addHook(Hook* hook) {
if (!ranges::contains(m_hooks, [&](auto const& h) { return h != hook; }))
if (!ranges::contains(m_hooks, [&](auto const& h) { return h == hook; }))
m_hooks.push_back(hook);
if (!LoaderImpl::get()->isReadyToHook()) {