Core/Players: Fixed crash when mute expired while player was ingame

This commit is contained in:
Shauren
2013-02-08 18:18:26 +01:00
parent d6c0afa71c
commit 97e876209e

View File

@@ -1575,7 +1575,9 @@ void Player::Update(uint32 p_time)
GetSession()->m_muteTime = 0;
PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_UPD_MUTE_TIME);
stmt->setInt64(0, 0); // Set the mute time to 0
stmt->setUInt32(1, GetSession()->GetAccountId());
stmt->setString(1, "");
stmt->setString(2, "");
stmt->setUInt32(3, GetSession()->GetAccountId());
LoginDatabase.Execute(stmt);
}