diff --git a/src/try_engine/event/app_event/event.hpp b/src/try_engine/event/app_event/event.hpp index de63065..4857903 100644 --- a/src/try_engine/event/app_event/event.hpp +++ b/src/try_engine/event/app_event/event.hpp @@ -21,7 +21,7 @@ namespace try_engine::app_event for (const auto layer : l_stack) { std::thread th { - [&]() { + [=]() { layer->on_event(type, value); } };