The memset antipattern cannot be used on classes with a virtual table
This commit is contained in:
parent
55d9392fb8
commit
07acd9375b
8 changed files with 41 additions and 43 deletions
|
|
@ -179,7 +179,6 @@ namespace swrenderer
|
|||
|
||||
// store information in a vissprite
|
||||
RenderParticle *vis = RenderMemory::NewObject<RenderParticle>();
|
||||
memset(vis, 0, sizeof(*vis));
|
||||
|
||||
vis->CurrentPortalUniq = renderportal->CurrentPortalUniq;
|
||||
vis->heightsec = heightsec;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue