diff options
author | aap <aap@papnet.eu> | 2020-08-24 22:46:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 22:46:17 +0200 |
commit | 8e7989087d93ba51deeca8a2d49629de18d918eb (patch) | |
tree | c15b8220c0d69132e90cbd3189d0d37fa30f9f24 /src/core | |
parent | Fix (diff) | |
parent | Compilation fix (diff) | |
download | re3-8e7989087d93ba51deeca8a2d49629de18d918eb.tar re3-8e7989087d93ba51deeca8a2d49629de18d918eb.tar.gz re3-8e7989087d93ba51deeca8a2d49629de18d918eb.tar.bz2 re3-8e7989087d93ba51deeca8a2d49629de18d918eb.tar.lz re3-8e7989087d93ba51deeca8a2d49629de18d918eb.tar.xz re3-8e7989087d93ba51deeca8a2d49629de18d918eb.tar.zst re3-8e7989087d93ba51deeca8a2d49629de18d918eb.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Streaming.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp index 74fec192..d296496e 100644 --- a/src/core/Streaming.cpp +++ b/src/core/Streaming.cpp @@ -1668,7 +1668,7 @@ CStreaming::StreamZoneModels(const CVector &pos) while(ms_bIsPedFromPedGroupLoaded[j]); ms_bIsPedFromPedGroupLoaded[j] = true; if(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[j] != -1) - RequestModel(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i], STREAMFLAGS_DEPENDENCY); + RequestModel(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[j], STREAMFLAGS_DEPENDENCY); } ms_numPedsLoaded = MAXZONEPEDSLOADED; timeBeforeNextLoad = 300; @@ -1692,7 +1692,7 @@ CStreaming::StreamZoneModels(const CVector &pos) j = CGeneral::GetRandomNumberInRange(0, NUMMODELSPERPEDGROUP); while(ms_bIsPedFromPedGroupLoaded[j]); if(ms_numPedsLoaded == MAXZONEPEDSLOADED) - ms_bIsPedFromPedGroupLoaded[i] = 0; + ms_bIsPedFromPedGroupLoaded[i] = false; ms_bIsPedFromPedGroupLoaded[j] = true; int newMI = CPopulation::ms_pPedGroups[ms_currentPedGrp].models[j]; if(newMI != oldMI){ @@ -1766,6 +1766,7 @@ CStreaming::RemoveCurrentZonesModels(void) if (ms_currentPedGrp != -1) for (i = 0; i < NUMMODELSPERPEDGROUP; i++) { + ms_bIsPedFromPedGroupLoaded[i] = false; if (CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i] != -1 && CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i] != MI_MALE01) { SetModelIsDeletable(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i]); |