summaryrefslogtreecommitdiff
path: root/src/primitives.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/primitives.c')
-rw-r--r--src/primitives.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/primitives.c b/src/primitives.c
index c2f6c9e..ee68f6a 100644
--- a/src/primitives.c
+++ b/src/primitives.c
@@ -3,7 +3,7 @@
static int honey_mesh_lua_plane(lua_State* L)
{
float width, height;
- honey_lua_parse_arguments(L, 2,
+ honey_lua_parse_arguments(L, 1, 2,
HONEY_NUMBER, &width,
HONEY_NUMBER, &height);
@@ -18,7 +18,7 @@ static int honey_mesh_lua_plane(lua_State* L)
static int honey_mesh_lua_cube(lua_State* L)
{
float width, height, depth;
- honey_lua_parse_arguments(L, 3,
+ honey_lua_parse_arguments(L, 1, 3,
HONEY_NUMBER, &width,
HONEY_NUMBER, &height,
HONEY_NUMBER, &depth);