mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Compile fix.
This commit is contained in:
parent
e7353428b1
commit
ed2b97287b
2 changed files with 4 additions and 6 deletions
|
|
@ -589,10 +589,8 @@ void WorldSession::HandleSetContactNotesOpcode( WorldPacket & recv_data )
|
||||||
|
|
||||||
void WorldSession::HandleBugOpcode( WorldPacket & recv_data )
|
void WorldSession::HandleBugOpcode( WorldPacket & recv_data )
|
||||||
{
|
{
|
||||||
uint32 suggestion, contentlen;
|
uint32 suggestion, contentlen, typelen;
|
||||||
std::string content;
|
std::string content, type;
|
||||||
uint32 typelen;
|
|
||||||
std::string type;
|
|
||||||
|
|
||||||
recv_data >> suggestion >> contentlen >> content;
|
recv_data >> suggestion >> contentlen >> content;
|
||||||
|
|
||||||
|
|
@ -889,7 +887,7 @@ void WorldSession::HandleUpdateAccountData(WorldPacket &recv_data)
|
||||||
uLongf realSize = decompressedSize;
|
uLongf realSize = decompressedSize;
|
||||||
if(uncompress(const_cast<uint8*>(dest.contents()), &realSize, const_cast<uint8*>(recv_data.contents() + recv_data.rpos()), recv_data.size() - recv_data.rpos()) != Z_OK)
|
if(uncompress(const_cast<uint8*>(dest.contents()), &realSize, const_cast<uint8*>(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");
|
sLog.outError("UAD: Failed to decompress account data");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1226,7 +1226,7 @@ void ObjectMgr::LoadGameobjects()
|
||||||
continue;
|
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);
|
sLog.outErrorDb("Gameobject (GUID: %u Entry %u GoType: %u) doesn't have displayId (%u), not loaded.", guid, entry, gInfo->type, gInfo->displayId);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue