summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-07 21:56:09 +0200
committeraap <aap@papnet.eu>2020-05-07 21:56:09 +0200
commita8f1505517f1baf061fe6b545906eaed09f851b8 (patch)
tree85a74573ba1184a384785181da42bb6e1160e16d /src/core/Streaming.cpp
parentMerge branch 'master' of github.com:GTAmodding/re3 (diff)
downloadre3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar.gz
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar.bz2
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar.lz
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar.xz
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.tar.zst
re3-a8f1505517f1baf061fe6b545906eaed09f851b8.zip
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r--src/core/Streaming.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp
index 72630d57..5aa419b1 100644
--- a/src/core/Streaming.cpp
+++ b/src/core/Streaming.cpp
@@ -1360,7 +1360,7 @@ CStreaming::StreamZoneModels(const CVector &pos)
// unload pevious group
if(ms_currentPedGrp != -1)
- for(i = 0; i < 8; i++){
+ for(i = 0; i < NUMMODELSPERPEDGROUP; i++){
if(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i] == -1)
break;
SetModelIsDeletable(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i]);
@@ -1369,7 +1369,7 @@ CStreaming::StreamZoneModels(const CVector &pos)
ms_currentPedGrp = info.pedGroup;
- for(i = 0; i < 8; i++){
+ for(i = 0; i < NUMMODELSPERPEDGROUP; i++){
if(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i] == -1)
break;
RequestModel(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i], STREAMFLAGS_DONT_REMOVE);