Skip to content

Commit

Permalink
Update CMisc.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mlibre2 authored Jul 7, 2023
1 parent 859526b commit 14eeb75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMisc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ void CPlayer::Connect(const char* address ){

void CPlayer::restartStats(bool all)
{
if ( all ) memset(weapons,0,sizeof(weapons));
memset(weaponsRnd,0,sizeof(weaponsRnd)); //DEC-Weapon (Round) stats
memset(attackers,0,sizeof(attackers));
memset(victims,0,sizeof(victims));
if ( all ) memset(&weapons,0,sizeof(weapons));
memset(&weaponsRnd,0,sizeof(weaponsRnd)); //DEC-Weapon (Round) stats
memset(&attackers,0,sizeof(attackers));
memset(&victims,0,sizeof(victims));
memset(&life,0,sizeof(life));
}

Expand Down

0 comments on commit 14eeb75

Please sign in to comment.