Selaa lähdekoodia

Fix Crash in Lambda

JDierkse 6 vuotta sitten
vanhempi
sitoutus
367f33aaa3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Util/Timer.h

+ 1 - 1
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))
 				{