Fix compilation with GCC 8.2+ (#617)
* GCC 8.2 support * Add GCC version check * -Werror=class-memaccess fix in code * Use assignment for Stats
This commit is contained in:
committed by
Vincent Herbet
parent
c86813697a
commit
0ccba67006
@ -82,7 +82,7 @@ void CPlayer::restartStats(bool all)
|
||||
memset(weaponsRnd,0,sizeof(weaponsRnd)); //DEC-Weapon (Round) stats
|
||||
memset(attackers,0,sizeof(attackers));
|
||||
memset(victims,0,sizeof(victims));
|
||||
memset(&life,0,sizeof(life));
|
||||
life = {};
|
||||
}
|
||||
|
||||
void CPlayer::Init( int pi, edict_t* pe )
|
||||
|
Reference in New Issue
Block a user