aboutsummaryrefslogtreecommitdiff
path: root/src/mg_schematic.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-06 18:39:05 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-06 18:39:05 -0500
commit390c0cd69185b3be7f6f49d7f8fe53f901edf5aa (patch)
treef2ebb02cac0a77585c04e3b672d11c47d9a66d4c /src/mg_schematic.cpp
parent60feb4ad25003b4ed5f93f7fda7f4b8177a0ba51 (diff)
downloadminetest-390c0cd69185b3be7f6f49d7f8fe53f901edf5aa.tar.gz
minetest-390c0cd69185b3be7f6f49d7f8fe53f901edf5aa.tar.bz2
minetest-390c0cd69185b3be7f6f49d7f8fe53f901edf5aa.zip
Schematics: Fix minetest.place_schematic() when defined by a Lua table
Diffstat (limited to 'src/mg_schematic.cpp')
-rw-r--r--src/mg_schematic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mg_schematic.cpp b/src/mg_schematic.cpp
index 92cbf8e4e..d203a7105 100644
--- a/src/mg_schematic.cpp
+++ b/src/mg_schematic.cpp
@@ -57,7 +57,7 @@ void Schematic::updateContentIds()
flags |= SCHEM_CIDS_UPDATED;
- for (int i = 0; i != size.X * size.Y * size.Z; i++)
+ for (size_t i = 0; i != size.X * size.Y * size.Z; i++)
schemdata[i].setContent(c_nodes[schemdata[i].getContent()]);
}