Skip to content

Commit

Permalink
Fix missing Y component assignment in check_v3f
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed May 8, 2015
1 parent 77e4a46 commit 0e64fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/common/c_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0e64fc4

Please sign in to comment.