mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-13 22:32:32 +00:00
Don't use memset to zero non-trivial type volumeIntegrals_t
This commit is contained in:
parent
59940c9b2f
commit
1ae9ff7d74
1 changed files with 4 additions and 1 deletions
|
@ -1409,7 +1409,10 @@ void idTraceModel::VolumeIntegrals( struct volumeIntegrals_s &integrals ) const
|
|||
int i, a, b, c;
|
||||
float nx, ny, nz;
|
||||
|
||||
memset( &integrals, 0, sizeof(volumeIntegrals_t) );
|
||||
integrals.T0 = 0.0f;
|
||||
integrals.T1.Zero();
|
||||
integrals.T2.Zero();
|
||||
integrals.TP.Zero();
|
||||
for ( i = 0; i < numPolys; i++ ) {
|
||||
poly = &polys[i];
|
||||
|
||||
|
|
Loading…
Reference in a new issue