[saco] Move CPickupPool constructor to pickuppool.h

This commit is contained in:
RD42 2024-08-21 23:25:26 +08:00
parent 8154fb5da2
commit de33537fc5
2 changed files with 11 additions and 15 deletions

View File

@ -3,20 +3,6 @@
//----------------------------------------------------
CPickupPool::CPickupPool()
{
memset(field_F004, 0, sizeof(field_F004));
field_0 = 0;
for (int i = 0; i < MAX_PICKUPS; i++)
{
m_dwHnd[i] = NULL;
field_8004[i] = 0;
field_4004[i] = -1;
}
}
//----------------------------------------------------
CPickupPool::~CPickupPool()
{
for(int i = 0; i < MAX_PICKUPS; i++)

View File

@ -20,7 +20,17 @@ private:
public:
CPickupPool();
CPickupPool() {
memset(field_F004, 0, sizeof(field_F004));
field_0 = 0;
for (int i = 0; i < MAX_PICKUPS; i++)
{
m_dwHnd[i] = NULL;
field_8004[i] = 0;
field_4004[i] = -1;
}
}
~CPickupPool();
};