From de33537fc5b51fa43e74baebf95be0d3e4198444 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Wed, 21 Aug 2024 23:25:26 +0800 Subject: [PATCH] [saco] Move CPickupPool constructor to pickuppool.h --- saco/net/pickuppool.cpp | 14 -------------- saco/net/pickuppool.h | 12 +++++++++++- 2 files changed, 11 insertions(+), 15 deletions(-) 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(); };