From 74903689848bcd277329f3bd54c62f2aa8306f40 Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Mon, 8 Dec 2014 22:50:39 +1000 Subject: Fix compiler warning (signed vs. unsigned) --- src/mg_schematic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mg_schematic.cpp b/src/mg_schematic.cpp index d203a7105..bb60cf5fd 100644 --- a/src/mg_schematic.cpp +++ b/src/mg_schematic.cpp @@ -57,7 +57,8 @@ void Schematic::updateContentIds() flags |= SCHEM_CIDS_UPDATED; - for (size_t i = 0; i != size.X * size.Y * size.Z; i++) + size_t bufsize = size.X * size.Y * size.Z; + for (size_t i = 0; i != bufsize; i++) schemdata[i].setContent(c_nodes[schemdata[i].getContent()]); } -- cgit v1.2.3