diff --git a/libs/ecs/include/psemek/ecs/dispatcher.hpp b/libs/ecs/include/psemek/ecs/dispatcher.hpp index 496fdbfd..b0ea1f83 100644 --- a/libs/ecs/include/psemek/ecs/dispatcher.hpp +++ b/libs/ecs/include/psemek/ecs/dispatcher.hpp @@ -52,25 +52,25 @@ namespace psemek::ecs { container_->apply([&](ecs::container & container, ecs::handle handle, Components & ... components){ system(event, container, handle, components...); - }); + }, cache); } else if constexpr (std::invocable) { container_->apply([&](ecs::container & container, Components & ... components){ system(event, container, components...); - }); + }, cache); } else if constexpr (std::invocable) { container_->apply([&](ecs::handle handle, Components & ... components){ system(event, handle, components...); - }); + }, cache); } else { container_->apply([&](Components & ... components){ system(event, components...); - }); + }, cache); } }); }