From 944f5eca99a86a348529e53f0236e16bef8a07bf Mon Sep 17 00:00:00 2001 From: Kp Date: Fri, 4 Jul 2014 04:16:29 +0000 Subject: [PATCH] List initialize render structures --- similar/main/render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/similar/main/render.cpp b/similar/main/render.cpp index a31dd979f..760312aa7 100644 --- a/similar/main/render.cpp +++ b/similar/main/render.cpp @@ -90,7 +90,7 @@ int Clear_window_color=-1; int Clear_window=2; // 1 = Clear whole background window, 2 = clear view portals into rest of world, 0 = no clear int framecount=-1; -short Rotated_last[MAX_VERTICES]; +array Rotated_last; // When any render function needs to know what's looking at it, it should // access Viewer members. @@ -713,7 +713,7 @@ void render_start_frame() if (framecount==0) { //wrap! - memset(Rotated_last,0,sizeof(Rotated_last)); //clear all to zero + Rotated_last = {}; //clear all to zero framecount=1; //and set this frame to 1 } }