From f4ae19ca7d62a2bc6b125a1ddb678300b30790d2 Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 9 Apr 2023 22:19:47 +0300 Subject: New argument style for rlgl, text, lights and math. --- src/rlgl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rlgl.c') diff --git a/src/rlgl.c b/src/rlgl.c index c025c01..3a9efdb 100644 --- a/src/rlgl.c +++ b/src/rlgl.c @@ -16,12 +16,12 @@ Set the line drawing width - Success return true */ int lrlglSetLineWidth( lua_State *L ) { - if ( !lua_isnumber( L, -1 ) ) { + if ( !lua_isnumber( L, 1 ) ) { TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.rlSetLineWidth( float width )" ); lua_pushboolean( L, false ); return 1; } - rlSetLineWidth( lua_tonumber( L, -1 ) ); + rlSetLineWidth( lua_tonumber( L, 1 ) ); lua_pushboolean( L, true ); return 1; -- cgit v1.2.3