2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-06-22 19:53:30 +00:00

CWorld: Dehardcode magic number in CheckWorldComplete()

Same behavior, no magic number.
This commit is contained in:
Lioncash 2020-03-30 00:58:00 -04:00
parent 802ac13812
commit 312b8f219a

View File

@ -318,7 +318,7 @@ bool CWorld::CheckWorldComplete(CStateManager* mgr, TAreaId id, CAssetId mreaId)
for (size_t i = x48_chainCount; i < x4c_chainHeads.size(); ++i) {
x4c_chainHeads[i] = nullptr;
}
x48_chainCount = 5;
x48_chainCount = x4c_chainHeads.size();
}
for (std::unique_ptr<CGameArea>& area : x18_areas)