summaryrefslogtreecommitdiffstats
path: root/src/core/Streaming.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-10-06 23:39:25 +0200
committereray orçunus <erayorcunus@gmail.com>2019-10-06 23:39:25 +0200
commitd5d1c7ec5fc98f8355d812587938314406a6df80 (patch)
treee1652a9c39e77bd1bc8b81973fccbe91eb3d8eae /src/core/Streaming.cpp
parentRadio shadow fix, RAMPAGE!! message fix (diff)
downloadre3-d5d1c7ec5fc98f8355d812587938314406a6df80.tar
re3-d5d1c7ec5fc98f8355d812587938314406a6df80.tar.gz
re3-d5d1c7ec5fc98f8355d812587938314406a6df80.tar.bz2
re3-d5d1c7ec5fc98f8355d812587938314406a6df80.tar.lz
re3-d5d1c7ec5fc98f8355d812587938314406a6df80.tar.xz
re3-d5d1c7ec5fc98f8355d812587938314406a6df80.tar.zst
re3-d5d1c7ec5fc98f8355d812587938314406a6df80.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 227a4a9f..e59b2b39 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 = NUMDEFAULTMODELS; i < MODELINFOSIZE; i++){
+ for(i = NUM_DEFAULT_MODELS; 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){
@@ -2405,8 +2405,8 @@ CStreaming::MemoryCardSave(uint8 *buffer, uint32 *length)
{
int i;
- *length = NUMDEFAULTMODELS;
- for(i = 0; i < NUMDEFAULTMODELS; i++)
+ *length = NUM_DEFAULT_MODELS;
+ for(i = 0; i < NUM_DEFAULT_MODELS; i++)
if(ms_aInfoForModel[i].m_loadState == STREAMSTATE_LOADED)
buffer[i] = ms_aInfoForModel[i].m_flags;
else
@@ -2418,7 +2418,7 @@ CStreaming::MemoryCardLoad(uint8 *buffer, uint32 length)
{
uint32 i;
- assert(length == NUMDEFAULTMODELS);
+ assert(length == NUM_DEFAULT_MODELS);
for(i = 0; i < length; i++)
if(ms_aInfoForModel[i].m_loadState == STREAMSTATE_LOADED)
if(buffer[i] != 0xFF)