SAGA2: Initialize class variables. CID 1457941, 1457963

This commit is contained in:
Eugene Sandulenko 2021-07-11 00:37:34 +02:00
parent 031c279f78
commit 215d84e739
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -711,7 +711,10 @@ private:
int16 arraySize;
public:
MaskComputer(void) : arraySize(0) {}
MaskComputer(void) : arraySize(0) {
for (int i = 0; i < 8; i++)
ptrArray[i] = nullptr;
}
DirMaskGroup *computeMask(uint8 objSection);
};
@ -2199,8 +2202,10 @@ WanderPathRequest::WanderPathRequest(
tetherMinV = mTask->tetherMinV;
tetherMaxU = mTask->tetherMaxU;
tetherMaxV = mTask->tetherMaxV;
} else
} else {
tethered = false;
tetherMinU = tetherMinV = tetherMaxU = tetherMaxV = 0;
}
}
// Initialize the static data members