Fix lambda capture
parent
473c0425d3
commit
1a07dc897d
|
@ -1067,12 +1067,13 @@ void cWorld::TickScheduledTasks(void)
|
|||
cScheduledTasks Tasks;
|
||||
{
|
||||
cCSLock Lock(m_CSScheduledTasks);
|
||||
auto WorldAge = m_WorldAge;
|
||||
std::move(
|
||||
m_ScheduledTasks.begin(),
|
||||
std::find_if(
|
||||
m_ScheduledTasks.begin(),
|
||||
m_ScheduledTasks.end(),
|
||||
[m_WorldAge] (std::unique_ptr<cScheduledTask>& Task) { return Task->m_TargetTick < m_WorldAge;}),
|
||||
[WorldAge] (std::unique_ptr<cScheduledTask>& Task) { return Task->m_TargetTick < m_WorldAge;}),
|
||||
std::back_inserter(Tasks));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue