Core/Misc: Fixed uninitialized values

CID 1254611 1377296 1377728 1377727
This commit is contained in:
Shauren
2017-07-17 19:10:32 +02:00
parent f677c71263
commit ca9b0b029f
3 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ namespace Movement
MonsterMoveType type;
FacingInfo() : angle(0.0f), type(MONSTER_MOVE_NORMAL) { }
FacingInfo() : angle(0.0f), type(MONSTER_MOVE_NORMAL) { f.x = f.y = f.z = 0.0f; }
};
struct SpellEffectExtraData

View File

@@ -395,10 +395,10 @@ namespace WorldPackets
uint32 Slot = 0;
int8 State = 0;
uint32 CompletedMask = 0;
uint8 Unused;
uint8 Unused = 0;
bool ValidCompletedMask = false;
bool ProposalSilent = false;
bool IsRequeue;
bool IsRequeue = false;
std::vector<LFGProposalUpdatePlayer> Players;
};

View File

@@ -71,7 +71,7 @@ uint8 const WorldSocket::ContinuedSessionSeed[16] = { 0x16, 0xAD, 0x0C, 0xD4, 0x
WorldSocket::WorldSocket(tcp::socket&& socket) : Socket(std::move(socket)),
_type(CONNECTION_TYPE_REALM), _key(0), _OverSpeedPings(0),
_worldSession(nullptr), _authed(false), _compressionStream(nullptr)
_worldSession(nullptr), _authed(false), _sendBufferSize(4096), _compressionStream(nullptr)
{
_serverChallenge.SetRand(8 * 16);
_headerBuffer.Resize(SizeOfClientHeader);