Fix access violation when someone votes after the vote timeout.
This commit is contained in:
@@ -389,7 +389,7 @@ ServerGameThread::InternalVoteKick(SessionWrapper byWhom, unsigned petitionId, K
|
||||
{
|
||||
boost::mutex::scoped_lock lock(m_voteKickDataMutex);
|
||||
// Check whether this is the valid petition id.
|
||||
if (m_voteKickData->petitionId == petitionId)
|
||||
if (m_voteKickData && m_voteKickData->petitionId == petitionId)
|
||||
{
|
||||
// Check whether the player already voted.
|
||||
unsigned playerId = byWhom.playerData->GetUniqueId();
|
||||
|
||||
Reference in New Issue
Block a user