1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Schematics: Fix minetest.place_schematic() when defined by a Lua table

This commit is contained in:
kwolekr 2014-12-06 18:39:05 -05:00
parent 60feb4ad25
commit 390c0cd691
2 changed files with 8 additions and 5 deletions

View file

@ -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()]);
}