summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-10-05 15:44:03 +0200
committereray orçunus <erayorcunus@gmail.com>2019-10-05 16:06:01 +0200
commitaa4e7ad5eb554b1219f7eaae53e5ddc0d4478dd9 (patch)
treead8198d43e156782930020c1e066f07812b9f45b /src/core/Streaming.cpp
parentFix warnings (diff)
downloadre3-aa4e7ad5eb554b1219f7eaae53e5ddc0d4478dd9.tar
re3-aa4e7ad5eb554b1219f7eaae53e5ddc0d4478dd9.tar.gz
re3-aa4e7ad5eb554b1219f7eaae53e5ddc0d4478dd9.tar.bz2
re3-aa4e7ad5eb554b1219f7eaae53e5ddc0d4478dd9.tar.lz
re3-aa4e7ad5eb554b1219f7eaae53e5ddc0d4478dd9.tar.xz
re3-aa4e7ad5eb554b1219f7eaae53e5ddc0d4478dd9.tar.zst
re3-aa4e7ad5eb554b1219f7eaae53e5ddc0d4478dd9.zip
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r--src/core/Streaming.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp
index a7bde91e..d15415ea 100644
--- a/src/core/Streaming.cpp
+++ b/src/core/Streaming.cpp
@@ -1021,7 +1021,7 @@ CStreaming::RemoveAllUnusedModels(void)
for(i = 0; i < MAXVEHICLESLOADED; i++)
RemoveLoadedVehicle();
- for(i = NUM_DEFAULT_MODELS; i < MODELINFOSIZE; i++){
+ for(i = NUMDEFAULTMODELS; i < MODELINFOSIZE; i++){
if(ms_aInfoForModel[i].m_loadState == STREAMSTATE_LOADED &&
ms_aInfoForModel[i].m_flags & STREAMFLAGS_DONT_REMOVE &&
CModelInfo::GetModelInfo(i)->m_refCount == 0){
@@ -2408,8 +2408,8 @@ CStreaming::MemoryCardSave(uint8 *buffer, uint32 *length)
{
int i;
- *length = NUM_DEFAULT_MODELS;
- for(i = 0; i < NUM_DEFAULT_MODELS; i++)
+ *length = NUMDEFAULTMODELS;
+ for(i = 0; i < NUMDEFAULTMODELS; i++)
if(ms_aInfoForModel[i].m_loadState == STREAMSTATE_LOADED)
buffer[i] = ms_aInfoForModel[i].m_flags;
else
@@ -2421,7 +2421,7 @@ CStreaming::MemoryCardLoad(uint8 *buffer, uint32 length)
{
uint32 i;
- assert(length == NUM_DEFAULT_MODELS);
+ assert(length == NUMDEFAULTMODELS);
for(i = 0; i < length; i++)
if(ms_aInfoForModel[i].m_loadState == STREAMSTATE_LOADED)
if(buffer[i] != 0xFF)