summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientHandle.h')
-rw-r--r--src/ClientHandle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index d7468d345..22d052f22 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -415,7 +415,7 @@ private:
int m_LastStreamedChunkZ;
/** Number of ticks since the last network packet was received (increased in Tick(), reset in OnReceivedData()) */
- int m_TicksSinceLastPacket;
+ std::atomic<int> m_TicksSinceLastPacket;
/** Duration of the last completed client ping. */
std::chrono::steady_clock::duration m_Ping;