From 0573fb9ed1c9ae3ebac174b60ee0cdc0f5111d02 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 17 Aug 2021 19:46:35 +0100 Subject: Fix the Detach method which got borked during a rebase. --- src/modules.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 40fad434d..6e77c5edf 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -208,12 +208,19 @@ bool ModuleManager::Detach(Implementation i, Module* mod) return stdalgo::erase(EventHandlers[i], mod); } + void ModuleManager::Attach(Implementation* i, Module* mod, size_t sz) { for (size_t n = 0; n < sz; ++n) Attach(i[n], mod); } +void ModuleManager::Detach(Implementation* i, Module* mod, size_t sz) +{ + for (size_t n = 0; n < sz; ++n) + Detach(i[n], mod); +} + void ModuleManager::AttachAll(Module* mod) { for (size_t i = 0; i != I_END; ++i) -- cgit v1.3.1-10-gc9f91