aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2014-12-08 22:50:39 +1000
committerCraig Robbins <kde.psych@gmail.com>2014-12-08 23:00:49 +1000
commit74903689848bcd277329f3bd54c62f2aa8306f40 (patch)
treef47ccb49a79d78b5f261478cad6826cad5dfdfc8 /src
parent2a7c6d27b32711e2439bf56715d813ef96b8f904 (diff)
downloadminetest-74903689848bcd277329f3bd54c62f2aa8306f40.tar.gz
minetest-74903689848bcd277329f3bd54c62f2aa8306f40.tar.bz2
minetest-74903689848bcd277329f3bd54c62f2aa8306f40.zip
Fix compiler warning (signed vs. unsigned)
Diffstat (limited to 'src')
-rw-r--r--src/mg_schematic.cpp3
1 files changed, 2 insertions, 1 deletions
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()]);
}