diff options
| author | jussi | 2023-10-15 18:54:19 +0300 |
|---|---|---|
| committer | jussi | 2023-10-15 18:54:19 +0300 |
| commit | 7af7e7003131e182efb30bac8c1ff06ac1d667d6 (patch) | |
| tree | ebc0d3dec4255165da0c67853213664b5e1d8e36 /src/models.c | |
| parent | c3352b8ed7becfef5a175f763241d77afdf24b02 (diff) | |
| download | reilua-enhanced-7af7e7003131e182efb30bac8c1ff06ac1d667d6.tar.gz reilua-enhanced-7af7e7003131e182efb30bac8c1ff06ac1d667d6.tar.bz2 reilua-enhanced-7af7e7003131e182efb30bac8c1ff06ac1d667d6.zip | |
Renamed start, end arguments to a, b to avoid using Lua keyword end in argument names.
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.c b/src/models.c index 380d8cf..89ea810 100644 --- a/src/models.c +++ b/src/models.c @@ -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 ) ) { |
