fix thread as reference

This commit is contained in:
chatlanin 2023-05-10 22:05:41 +03:00
parent b6d4e614af
commit 5e74690e49

View File

@ -21,7 +21,7 @@ namespace try_engine::app_event
for (const auto layer : l_stack) for (const auto layer : l_stack)
{ {
std::thread th { std::thread th {
[=]() { [&]() {
layer->on_event(type, value); layer->on_event(type, value);
} }
}; };