Core/Auth: fixed logic in FailedLogins check

This commit is contained in:
joschiwald
2016-09-24 20:03:31 +02:00
parent cd6fcce84b
commit 96316530d8

View File

@@ -671,7 +671,7 @@ bool AuthSession::HandleLogonProof()
stmt->setString(0, _accountInfo.Login);
LoginDatabase.Execute(stmt);
if (_accountInfo.FailedLogins >= MaxWrongPassCount)
if (++_accountInfo.FailedLogins >= MaxWrongPassCount)
{
uint32 WrongPassBanTime = sConfigMgr->GetIntDefault("WrongPass.BanTime", 600);
bool WrongPassBanType = sConfigMgr->GetBoolDefault("WrongPass.BanType", false);