mirror of https://github.com/AxioDL/metaforce.git
CWorld: Dehardcode magic number in CheckWorldComplete()
Same behavior, no magic number.
This commit is contained in:
parent
802ac13812
commit
312b8f219a
|
@ -318,7 +318,7 @@ bool CWorld::CheckWorldComplete(CStateManager* mgr, TAreaId id, CAssetId mreaId)
|
||||||
for (size_t i = x48_chainCount; i < x4c_chainHeads.size(); ++i) {
|
for (size_t i = x48_chainCount; i < x4c_chainHeads.size(); ++i) {
|
||||||
x4c_chainHeads[i] = nullptr;
|
x4c_chainHeads[i] = nullptr;
|
||||||
}
|
}
|
||||||
x48_chainCount = 5;
|
x48_chainCount = x4c_chainHeads.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (std::unique_ptr<CGameArea>& area : x18_areas)
|
for (std::unique_ptr<CGameArea>& area : x18_areas)
|
||||||
|
|
Loading…
Reference in New Issue