mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
SAGA2: Initialize class variables. CID 1457941, 1457963
This commit is contained in:
parent
031c279f78
commit
215d84e739
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user