diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp index a2765ba1a..99ceebfc6 100644 --- a/src/game/MiscHandler.cpp +++ b/src/game/MiscHandler.cpp @@ -589,10 +589,8 @@ void WorldSession::HandleSetContactNotesOpcode( WorldPacket & recv_data ) void WorldSession::HandleBugOpcode( WorldPacket & recv_data ) { - uint32 suggestion, contentlen; - std::string content; - uint32 typelen; - std::string type; + uint32 suggestion, contentlen, typelen; + std::string content, type; recv_data >> suggestion >> contentlen >> content; @@ -889,7 +887,7 @@ void WorldSession::HandleUpdateAccountData(WorldPacket &recv_data) uLongf realSize = decompressedSize; if(uncompress(const_cast(dest.contents()), &realSize, const_cast(recv_data.contents() + recv_data.rpos()), recv_data.size() - recv_data.rpos()) != Z_OK) { - recv_data.rpos(recv_data.wpos()); // unnneded warning spam in this case + recv_data.rpos(recv_data.wpos()); // unneded warning spam in this case sLog.outError("UAD: Failed to decompress account data"); return; } diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index e9a21360b..fdcb99832 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1226,7 +1226,7 @@ void ObjectMgr::LoadGameobjects() continue; } - if(!gInfo->displayId)) + if(!gInfo->displayId) { sLog.outErrorDb("Gameobject (GUID: %u Entry %u GoType: %u) doesn't have displayId (%u), not loaded.", guid, entry, gInfo->type, gInfo->displayId); continue;