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

View File

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