2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 13:44:56 +00:00

Various CAutoMapper fixes

This commit is contained in:
Jack Andersen
2017-11-16 13:49:25 -10:00
parent a914e121ea
commit 0edac28ed4
14 changed files with 52 additions and 49 deletions

View File

@@ -50,13 +50,15 @@ void CMapWorld::SetWhichMapAreasLoaded(const IWorld& wld, int start, int count)
for (int i=0 ; i<2 ; ++i)
{
for (CMapAreaData* data = x10_listHeads[i] ; data ; data = data->NextMapAreaData())
for (CMapAreaData* data = x10_listHeads[i] ; data ;)
{
CMapAreaData* nextData = data->NextMapAreaData();
if (!IsMapAreaInBFSInfoVector(data, bfsInfos))
{
data->Unlock();
MoveMapAreaToList(data, EMapAreaList::Unloaded);
}
data = nextData;
}
}