Core/Players: Fixed crash when mute expired while player was ingame
This commit is contained in:
1 parent
d6c0afa71c
commit
97e876209e
1 file changed
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user