Userdata objects can be referenced with lightuserdata.

This commit is contained in:
jussi
2023-10-30 00:04:11 +02:00
parent 992310fb90
commit d287078c65
18 changed files with 453 additions and 256 deletions

View File

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