[server] Implement CPlayerPool::ResetPlayerScoresAndMoney

This commit is contained in:
RD42 2024-01-25 22:15:40 +08:00
parent 313f2c0be0
commit 0ee5413941

View File

@ -35,6 +35,11 @@ public:
BOOL Delete(PLAYERID playerId, BYTE byteReason);
void ResetPlayerScoresAndMoney() {
memset(&m_iPlayerScore[0],0,sizeof(int) * MAX_PLAYERS);
memset(&m_iPlayerMoney[0],0,sizeof(int) * MAX_PLAYERS);
memset(&m_iVirtualWorld[0],0,sizeof(int) * MAX_PLAYERS);
}
};
#endif