summaryrefslogtreecommitdiff
path: root/src/textures.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c2
1 files changed, 1 insertions, 1 deletions
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;