mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-10 08:07:50 -04:00
Fix nk_love_tree_state_push
by making the image argument optional
This commit is contained in:
parent
42ca8ed3c0
commit
75da1af2b6
1 changed files with 1 additions and 1 deletions
|
@ -2420,7 +2420,7 @@ static int nk_love_tree_state_push(lua_State *L)
|
|||
const char *title = luaL_checkstring(L, 3);
|
||||
struct nk_image image;
|
||||
int use_image = 0;
|
||||
if (argc >= 3 && !lua_isnil(L, 4)) {
|
||||
if (argc >= 4 && !lua_isnil(L, 4)) {
|
||||
nk_love_checkImage(4, &image);
|
||||
use_image = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue