From 7279a5b6f5bc7df41da0859e1a65e500a343d23a Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 2 Jun 2024 15:48:04 +0300 Subject: [PATCH] Fix unused caches in ecs::dispatcher --- libs/ecs/include/psemek/ecs/dispatcher.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } }); }