From 367f33aaa34a2c6807d7803c936f5d7defa870a1 Mon Sep 17 00:00:00 2001 From: JDierkse Date: Tue, 29 Jan 2019 15:29:06 +0100 Subject: [PATCH] Fix Crash in Lambda --- Util/Timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/Timer.h b/Util/Timer.h index 31666a8..fdd8620 100644 --- a/Util/Timer.h +++ b/Util/Timer.h @@ -29,7 +29,7 @@ public: Stop(); m_run.store(true, std::memory_order_release); - m_thread = std::thread([this, interval, function, arguments ...]() + m_thread = std::thread([this, interval, function, &arguments...]() { while (m_run.load(std::memory_order_acquire)) {