zxs 2 hete
szülő
commit
33aded5809
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      robot/robotics/message_bus.hpp

+ 1 - 1
robot/robotics/message_bus.hpp

@@ -112,7 +112,7 @@ namespace robotics {
 				}
 				if constexpr(std::is_same<_Ret, void>::value) {
 					for(auto &fn : funcs) {
-						std::any_cast<function_type>(fn)(args...);
+						std::any_cast<function_type>(fn.second)(args...);
 					}
 				}
 				else {