From 8fecdad891f44c4188468f8658fbd2322c5936bc Mon Sep 17 00:00:00 2001 From: riccardom Date: Sun, 18 Mar 2012 16:39:47 +0000 Subject: [PATCH] gfx3d.cpp: correct memset size for vertlists and polylists --- desmume/src/gfx3d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/gfx3d.cpp b/desmume/src/gfx3d.cpp index 3870583a0..94a129a47 100644 --- a/desmume/src/gfx3d.cpp +++ b/desmume/src/gfx3d.cpp @@ -498,8 +498,8 @@ void gfx3d_reset() control = 0; drawPending = FALSE; flushPending = FALSE; - memset(polylists, 0, sizeof(polylists)); - memset(vertlists, 0, sizeof(vertlists)); + memset(polylists, 0, sizeof(POLYLIST)*2); + memset(vertlists, 0, sizeof(VERTLIST)*2); gfx3d.state.invalidateToon = true; listTwiddle = 1; twiddleLists();