diff --git a/world/queryserv.cpp b/world/queryserv.cpp index 2539fff63..3eb664a5e 100644 --- a/world/queryserv.cpp +++ b/world/queryserv.cpp @@ -57,7 +57,7 @@ bool QueryServConnection::Process() struct in_addr in; in.s_addr = GetIP(); _log(QUERYSERV__ERROR, "QueryServ authorization failed."); - ServerPacket* pack = new ServerPacket(ServerOP_ZAAuthFailed); + auto pack = new ServerPacket(ServerOP_ZAAuthFailed); SendPacket(pack); delete pack; Disconnect(); @@ -69,7 +69,7 @@ bool QueryServConnection::Process() struct in_addr in; in.s_addr = GetIP(); _log(QUERYSERV__ERROR, "QueryServ authorization failed."); - ServerPacket* pack = new ServerPacket(ServerOP_ZAAuthFailed); + auto pack = new ServerPacket(ServerOP_ZAAuthFailed); SendPacket(pack); delete pack; Disconnect();