Renamed start, end arguments to a, b to avoid using Lua keyword end in argument names.

This commit is contained in:
jussi
2023-10-15 18:54:19 +03:00
parent c3352b8ed7
commit 7af7e70031
7 changed files with 28 additions and 28 deletions

View File

@@ -1661,7 +1661,7 @@ int lmodelsCreateMaterial( lua_State *L ) {
lua_pushnil( L );
while ( lua_next( L, t4 ) != 0 ) {
if ( strcmp( "texture", (char*)lua_tostring( L, -2 ) ) == 0 && lua_isnumber( L, -1 ) ) {
if ( strcmp( "texture", (char*)lua_tostring( L, -2 ) ) == 0 && isValidTexture( L, lua_gettop( L ), true ) ) {
state->materials[i]->maps[map].texture = uluaGetTexture( L, lua_gettop( L ) );
}
else if ( strcmp( "color", (char*)lua_tostring( L, -2 ) ) == 0 && lua_istable( L, -1 ) ) {