mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 17:47:43 +00:00
General: Make use of explicit constructors where applicable
Gets rid of potential error prone implicitly constructing constructors.
This commit is contained in:
@@ -567,7 +567,7 @@ void CWorld::Update(float dt) {
|
||||
|
||||
u32 areaCount = 0;
|
||||
|
||||
for (CGameArea* head = x4c_chainHeads[3]; head != skGlobalNonConstEnd; head = head->x130_next, ++areaCount) {
|
||||
for (auto head = GetChainHead(EChain::Alive); head != AliveAreasEnd(); ++head, ++areaCount) {
|
||||
head->AliveUpdate(dt);
|
||||
|
||||
if (head->DoesAreaNeedSkyNow()) {
|
||||
@@ -625,7 +625,7 @@ void CWorld::Update(float dt) {
|
||||
}
|
||||
|
||||
void CWorld::PreRender() {
|
||||
for (CGameArea* head = x4c_chainHeads[3]; head != skGlobalNonConstEnd; head = head->x130_next) {
|
||||
for (auto head = GetChainHead(EChain::Alive); head != AliveAreasEnd(); ++head) {
|
||||
head->PreRender();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user