Compile fix.

This commit is contained in:
tomrus88 2009-08-24 01:28:12 +04:00
parent e7353428b1
commit ed2b97287b
2 changed files with 4 additions and 6 deletions

View file

@ -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<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");
return;
}

View file

@ -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;