From af03c7364ea0dfe2c8bb269eb8a8f9b580f39633 Mon Sep 17 00:00:00 2001 From: jussi Date: Sat, 28 Oct 2023 14:15:20 +0300 Subject: New object type Font. --- src/textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/textures.c') diff --git a/src/textures.c b/src/textures.c index 28cb1cb..2121d12 100644 --- a/src/textures.c +++ b/src/textures.c @@ -924,7 +924,7 @@ Load texture from file into GPU memory ( VRAM ) - Success return Texture */ int ltexturesLoadTexture( lua_State *L ) { - if ( FileExists( lua_tostring( L, 1 ) ) ) { + if ( FileExists( luaL_checkstring( L, 1 ) ) ) { uluaPushTexture( L, LoadTexture( lua_tostring( L, 1 ) ) ); return 1; -- cgit v1.2.3