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
|
|
@ -157,7 +157,6 @@ namespace swrenderer
|
|||
|
||||
// store information in a vissprite
|
||||
RenderSprite *vis = RenderMemory::NewObject<RenderSprite>();
|
||||
memset(vis, 0, sizeof(*vis));
|
||||
|
||||
vis->CurrentPortalUniq = renderportal->CurrentPortalUniq;
|
||||
vis->xscale = FLOAT2FIXED(xscale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue