diff options
| author | victorfisac <victorfisac@gmail.com> | 2016-05-20 14:07:50 +0200 |
|---|---|---|
| committer | victorfisac <victorfisac@gmail.com> | 2016-05-20 14:07:50 +0200 |
| commit | 90c62c4cc0bc79ea51ae114467757a8d80c38fa6 (patch) | |
| tree | 9eb1c1b1146bccbc60645e226f572955a41bdfb2 /src/models.c | |
| parent | 4f1bee31654dec5f5cea2ac9d291d202df504745 (diff) | |
| download | raylib-90c62c4cc0bc79ea51ae114467757a8d80c38fa6.tar.gz raylib-90c62c4cc0bc79ea51ae114467757a8d80c38fa6.zip | |
Fix small warning
Material glossiness is a float type value...
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 44e30390..0e59242b 100644 --- a/src/models.c +++ b/src/models.c @@ -2068,7 +2068,7 @@ static Material LoadMTL(const char *fileName) { if (buffer[1] == 's') // Ns int Shininess (specular exponent). Ranges from 0 to 1000. { - sscanf(buffer, "Ns %i", &material.glossiness); + sscanf(buffer, "Ns %f", &material.glossiness); } else if (buffer[1] == 'i') // Ni int Refraction index. { |
