Prevent crash due to not returning value from layout_template_end

This commit is contained in:
Kevin Harrison 2020-05-08 14:41:31 -04:00
parent 9ba37e4e4a
commit 018aaf60a0

View file

@ -2181,6 +2181,7 @@ static int nk_love_layout_template_end(lua_State *L)
nk_love_assert_argc(lua_gettop(L) == 1); nk_love_assert_argc(lua_gettop(L) == 1);
nk_love_assert_context(1); nk_love_assert_context(1);
nk_layout_row_template_end(&context->nkctx); nk_layout_row_template_end(&context->nkctx);
return 0;
} }
static int nk_love_layout_template(lua_State *L) static int nk_love_layout_template(lua_State *L)