1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-22 20:00:01 +00:00

actual struct name

This commit is contained in:
Nikolay Korolev 2021-01-01 13:35:23 +03:00
parent e9288dd005
commit 2f05c64470
2 changed files with 5 additions and 5 deletions

View file

@ -1340,7 +1340,7 @@ void CMissionCleanup::Init()
}
}
CMissionCleanupEntity* CMissionCleanup::FindFree()
cleanup_entity_struct* CMissionCleanup::FindFree()
{
for (int i = 0; i < MAX_CLEANUP; i++){
if (m_sEntities[i].type == CLEANUP_UNUSED)
@ -1352,7 +1352,7 @@ CMissionCleanupEntity* CMissionCleanup::FindFree()
void CMissionCleanup::AddEntityToList(int32 id, uint8 type)
{
CMissionCleanupEntity* pNew = FindFree();
cleanup_entity_struct* pNew = FindFree();
if (!pNew)
return;
pNew->id = id;

View file

@ -134,7 +134,7 @@ enum {
CLEANUP_OBJECT
};
struct CMissionCleanupEntity
struct cleanup_entity_struct
{
uint8 type;
int32 id;
@ -148,14 +148,14 @@ enum {
class CMissionCleanup
{
CMissionCleanupEntity m_sEntities[MAX_CLEANUP];
cleanup_entity_struct m_sEntities[MAX_CLEANUP];
uint8 m_nCount;
public:
CMissionCleanup();
void Init();
CMissionCleanupEntity* FindFree();
cleanup_entity_struct* FindFree();
void AddEntityToList(int32, uint8);
void RemoveEntityFromList(int32, uint8);
void Process();