From 6fcb8abbd0b5f62d6dfb4965469bc22401d3a234 Mon Sep 17 00:00:00 2001 From: def Date: Thu, 18 Jun 2020 08:18:33 +0200 Subject: [PATCH] Initialize m_SqlRandomMapResult (fixes #2272) --- src/game/server/player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/server/player.cpp b/src/game/server/player.cpp index 7249f6a9d..ca13df575 100644 --- a/src/game/server/player.cpp +++ b/src/game/server/player.cpp @@ -124,6 +124,7 @@ void CPlayer::Reset() m_LastSQLQuery = 0; m_SqlQueryResult = nullptr; m_SqlFinishResult = nullptr; + m_SqlRandomMapResult = nullptr; #endif int64 Now = Server()->Tick(); @@ -159,7 +160,7 @@ void CPlayer::Tick() ProcessSqlResult(*m_SqlFinishResult); m_SqlFinishResult = nullptr; } - if(m_SqlRandomMapResult!= nullptr && m_SqlRandomMapResult.use_count() == 1) + if(m_SqlRandomMapResult != nullptr && m_SqlRandomMapResult.use_count() == 1) { if(m_SqlRandomMapResult->m_Done) {