mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 16:29:55 +00:00
fix uninitialized members in Pathgrid::Point
This commit is contained in:
parent
87fac78823
commit
9cc219ff76
1 changed files with 13 additions and 3 deletions
|
@ -8,18 +8,28 @@ namespace ESM
|
|||
{
|
||||
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];
|
||||
mY = rhs[1];
|
||||
mZ = rhs[2];
|
||||
mAutogenerated = 0;
|
||||
mConnectionNum = 0;
|
||||
mUnknown = 0;
|
||||
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];
|
||||
mY = rhs[1];
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue