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
1 changed files with 1 additions and 1 deletions

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)