Fix access violation when someone votes after the vote timeout.

This commit is contained in:
lotodore
2008-12-23 18:17:14 +00:00
parent a46d07f24e
commit 1548598944
+1 -1
View File
@@ -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();