Uninitialised value fix (#5570)

This commit is contained in:
Victor 2024-09-08 23:18:28 +02:00 committed by GitHub
parent 5f4d2f004b
commit 0325de7dac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ Schwertspize
Seadragon91 (Lukas Pioch) Seadragon91 (Lukas Pioch)
sleirsgoevy (Sergey Lisov) sleirsgoevy (Sergey Lisov)
Sofapriester Sofapriester
solvictor
Spekdrum (Pablo Beltran) Spekdrum (Pablo Beltran)
SphinxC0re SphinxC0re
Spongecade (Updated wiki links) Spongecade (Updated wiki links)

View File

@ -74,6 +74,7 @@ cClientHandle::cClientHandle(const AString & a_IPString, int a_ViewDistance) :
m_IPString(a_IPString), m_IPString(a_IPString),
m_Player(nullptr), m_Player(nullptr),
m_CachedSentChunk(std::numeric_limits<decltype(m_CachedSentChunk.m_ChunkX)>::max(), std::numeric_limits<decltype(m_CachedSentChunk.m_ChunkZ)>::max()), m_CachedSentChunk(std::numeric_limits<decltype(m_CachedSentChunk.m_ChunkX)>::max(), std::numeric_limits<decltype(m_CachedSentChunk.m_ChunkZ)>::max()),
m_ProxyConnection(false),
m_HasSentDC(false), m_HasSentDC(false),
m_LastStreamedChunkX(std::numeric_limits<decltype(m_LastStreamedChunkX)>::max()), // bogus chunk coords to force streaming upon login m_LastStreamedChunkX(std::numeric_limits<decltype(m_LastStreamedChunkX)>::max()), // bogus chunk coords to force streaming upon login
m_LastStreamedChunkZ(std::numeric_limits<decltype(m_LastStreamedChunkZ)>::max()), m_LastStreamedChunkZ(std::numeric_limits<decltype(m_LastStreamedChunkZ)>::max()),