Fixed uninitialized members

This commit is contained in:
s1lentq 2024-06-26 19:53:54 +07:00
parent 621d775fe0
commit feacae5c3d
2 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ CQueryLimiter::CQueryLimiter()
m_uniqueQueries = 0;
m_useGlobalRateLimit = false;
m_lastAdded = -1;
m_lastFloodLog = 0;
memset(m_lastQueries, 0, sizeof m_lastQueries);
if ((MAX_STORED_QUERIES & (MAX_STORED_QUERIES - 1)) != 0)

View File

@ -11,6 +11,8 @@ CReunionPlayer::CReunionPlayer(IGameClient* cl) {
void CReunionPlayer::clear() {
m_IdKind = CI_UNKNOWN;
m_AuthKind = CA_UNKNOWN;
m_authKeyKind = AK_OTHER;
m_idString[0] = 0;
m_Protocol = 0;
m_ConnectionTime = 0.0;
m_UnauthenticatedSteamId = 0;