From d287078c658d26d41a28f92b62b023048c5503ce Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 30 Oct 2023 00:04:11 +0200 Subject: Userdata objects can be referenced with lightuserdata. --- src/rgui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rgui.c') diff --git a/src/rgui.c b/src/rgui.c index f410a55..e7a080e 100644 --- a/src/rgui.c +++ b/src/rgui.c @@ -116,7 +116,7 @@ int lguiGuiGetState( lua_State *L ) { Set gui custom font (global state) */ int lguiGuiSetFont( lua_State *L ) { - Font *font = luaL_checkudata( L, 1, "Font" ); + Font *font = uluaGetFont( L, 1 ); GuiSetFont( *font ); -- cgit v1.2.3