aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-05-08 00:03:41 -0400
committerkwolekr <kwolekr@minetest.net>2015-05-08 00:03:41 -0400
commit0e64fc45b909b50dcd7551e4b9492517fbaee40e (patch)
treed2a08d84bb08518e13df0e73cca36f974bf61b30 /src
parent77e4a467f019459572d14e32a6187f43aee31b3a (diff)
downloadminetest-0e64fc45b909b50dcd7551e4b9492517fbaee40e.tar.gz
minetest-0e64fc45b909b50dcd7551e4b9492517fbaee40e.tar.bz2
minetest-0e64fc45b909b50dcd7551e4b9492517fbaee40e.zip
Fix missing Y component assignment in check_v3f
Diffstat (limited to 'src')
-rw-r--r--src/script/common/c_converter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/common/c_converter.cpp b/src/script/common/c_converter.cpp
index 6bf48db0d..157db3b7d 100644
--- a/src/script/common/c_converter.cpp
+++ b/src/script/common/c_converter.cpp
@@ -154,7 +154,7 @@ v3f check_v3f(lua_State *L, int index)
lua_pop(L, 1);
lua_getfield(L, index, "y");
CHECK_POS_COORD("y");
- pos.Z = lua_tonumber(L, -1);
+ pos.Y = lua_tonumber(L, -1);
lua_pop(L, 1);
lua_getfield(L, index, "z");
CHECK_POS_COORD("z");