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:
dhewg 2011-12-13 17:21:31 +01:00
parent 09ea2ca819
commit 758a954c0d

View file

@ -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 );