Fix missing Y component assignment in check_v3f

This commit is contained in:
kwolekr 2015-05-08 00:03:41 -04:00 committed by OttoLidenbrock
parent 2e28e6849e
commit ef755ff2c4

View File

@ -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");