Core/Auth: fixed logic in FailedLogins check

This commit is contained in:
joschiwald authored and Aokromes committed 2016-09-25 10:11:33 +02:00
1 parent 3b6b13071a
commit dd399cc7d5
1 file changed
+1 -1
+1 -1
View File
@@ -673,7 +673,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);