1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

fix uninitialized members in Pathgrid::Point

This commit is contained in:
Thoronador 2015-01-02 01:11:31 +01:00
parent 87fac78823
commit 9cc219ff76

View file

@ -8,18 +8,28 @@ namespace ESM
{ {
unsigned int Pathgrid::sRecordId = REC_PGRD; unsigned int Pathgrid::sRecordId = REC_PGRD;
Pathgrid::Point& Pathgrid::Point::operator=(const float rhs[3]) { Pathgrid::Point& Pathgrid::Point::operator=(const float rhs[3])
{
mX = rhs[0]; mX = rhs[0];
mY = rhs[1]; mY = rhs[1];
mZ = rhs[2]; mZ = rhs[2];
mAutogenerated = 0;
mConnectionNum = 0;
mUnknown = 0;
return *this; return *this;
} }
Pathgrid::Point::Point(const float rhs[3]) { Pathgrid::Point::Point(const float rhs[3])
: mAutogenerated(0),
mConnectionNum(0),
mUnknown(0)
{
mX = rhs[0]; mX = rhs[0];
mY = rhs[1]; mY = rhs[1];
mZ = rhs[2]; mZ = rhs[2];
} }
Pathgrid::Point::Point():mX(0),mY(0),mZ(0) { Pathgrid::Point::Point():mX(0),mY(0),mZ(0),mAutogenerated(0),
mConnectionNum(0),mUnknown(0)
{
} }
void Pathgrid::load(ESMReader &esm) void Pathgrid::load(ESMReader &esm)