[saco] Implement/match CNetPlayer destructor

This commit is contained in:
RD42 2024-10-20 15:43:25 +08:00
parent fedba35897
commit 9e596ad32a
2 changed files with 7 additions and 0 deletions

View File

@ -14,3 +14,9 @@ CNetPlayer::CNetPlayer(PCHAR szPlayerName, BOOL bIsNPC)
//---------------------------------------------------- //----------------------------------------------------
CNetPlayer::~CNetPlayer()
{
SAFE_DELETE(m_pRemotePlayer);
}
//----------------------------------------------------

View File

@ -17,6 +17,7 @@ public:
std::string m_PlayerName; std::string m_PlayerName;
CNetPlayer(PCHAR szPlayerName, BOOL bIsNPC); CNetPlayer(PCHAR szPlayerName, BOOL bIsNPC);
~CNetPlayer();
}; };
//---------------------------------------------------- //----------------------------------------------------