diff --git a/saco/net/pickuppool.cpp b/saco/net/pickuppool.cpp index a9b4dad..2ca312d 100644 --- a/saco/net/pickuppool.cpp +++ b/saco/net/pickuppool.cpp @@ -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++) diff --git a/saco/net/pickuppool.h b/saco/net/pickuppool.h index 696c9e6..9ec0908 100644 --- a/saco/net/pickuppool.h +++ b/saco/net/pickuppool.h @@ -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(); };