fix thread as reference
This commit is contained in:
parent
b6d4e614af
commit
5e74690e49
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user