From f635c27e072cefbedb6bd0771b42cdda4c602ef0 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 30 Jul 2018 09:34:37 +0200 Subject: [PATCH] fixed variable conflict warning --- floorshapes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/floorshapes.cpp b/floorshapes.cpp index 4cff8b1a..63d0df13 100644 --- a/floorshapes.cpp +++ b/floorshapes.cpp @@ -566,11 +566,11 @@ namespace irr { cornerlist.push_back(rspintox(vs.vertices[j]) * xpush(hdist0(vs.vertices[j]) * sca) * C0); bshape(fsh.b[i], fsh.prio); - for(int i=0; i<=cor; i++) hpcpush(cornerlist[i%cor]); + for(int j=0; j<=cor; j++) hpcpush(cornerlist[j%cor]); bshape(fsh.shadow[i], fsh.prio); - for(int i=0; i<=cor; i++) - hpcpush(mid_at(hpxy(0,0), cornerlist[i%cor], SHADMUL)); + for(int j=0; j<=cor; j++) + hpcpush(mid_at(hpxy(0,0), cornerlist[j%cor], SHADMUL)); cell fc; fc.type = cor;