2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 06:27:43 +00:00

CPVSVisOctree: Initialize in-class member variables where applicable

Provides a deterministic initial state for the default constructor.
This commit is contained in:
Lioncash
2020-03-07 04:59:04 -05:00
parent 4034e3b31f
commit 8d42eb4287
2 changed files with 11 additions and 7 deletions

View File

@@ -14,9 +14,13 @@ CPVSVisOctree CPVSVisOctree::MakePVSVisOctree(const u8* data) {
}
CPVSVisOctree::CPVSVisOctree(const zeus::CAABox& aabb, u32 numObjects, u32 numLights, const u8* c)
: x0_aabb(aabb), x18_numObjects(numObjects), x1c_numLights(numLights), x20_bufferFlag(c != nullptr), x24_octreeData(c) {
x2c_searchAabb = x0_aabb;
x20_bufferFlag = 0;
: x0_aabb(aabb)
, x18_numObjects(numObjects)
, x1c_numLights(numLights)
, x20_bufferFlag(c != nullptr)
, x24_octreeData(c)
, x2c_searchAabb(x0_aabb) {
x20_bufferFlag = false;
}
u32 CPVSVisOctree::GetNumChildren(u8 byte) const {