Authserver: Fixed crash when accounts limited to ip tried to login and fixes compile on gcc 4.5, thx Kondziu for pointing it out

Closes issue #3976.
Closes issue #4011.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-09-17 13:52:46 +02:00
parent dd1521aa55
commit 137cfa4f77
+1 -1
View File
@@ -387,7 +387,7 @@ bool AuthSocket::_HandleLogonChallenge()
bool locked = false;
if (res2->GetUInt8(2) == 1) // if ip is locked
{
sLog.outStaticDebug("[AuthChallenge] Account '%s' is locked to IP - '%s'", _login.c_str(), res2->GetString(3));
sLog.outStaticDebug("[AuthChallenge] Account '%s' is locked to IP - '%s'", _login.c_str(), res2->GetCString(3));
sLog.outStaticDebug("[AuthChallenge] Player address is '%s'", ip_address.c_str());
if (strcmp(res2->GetCString(3), ip_address.c_str()))
{