mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-21 18:21:08 +00:00
Fix -Wdynamic-class-memaccess warning
destination for this 'memset' call is a pointer to dynamic class 'idRenderLightLocal'; vtable pointer will be overwritten The constructor already initializes everything to zero, get rid of this dangerous memset().
This commit is contained in:
parent
09ea2ca819
commit
758a954c0d
1 changed files with 0 additions and 1 deletions
|
@ -501,7 +501,6 @@ Called by the editor and dmap to operate on light volumes
|
|||
void R_RenderLightFrustum( const renderLight_t &renderLight, idPlane lightFrustum[6] ) {
|
||||
idRenderLightLocal fakeLight;
|
||||
|
||||
memset( &fakeLight, 0, sizeof( fakeLight ) );
|
||||
fakeLight.parms = renderLight;
|
||||
|
||||
R_DeriveLightData( &fakeLight );
|
||||
|
|
Loading…
Reference in a new issue