diff options
| author | Ray <[email protected]> | 2023-09-22 11:58:24 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-09-22 11:58:24 +0200 |
| commit | 83d82b6697204efa4601455ebb4beaef609bfc86 (patch) | |
| tree | e93990a72504df8d333cbe4c35b1b66f7f9fa6a1 /src/rmodels.c | |
| parent | f27ea1f0c874b5bbae5f83de423256cc141aebc6 (diff) | |
| download | raylib-83d82b6697204efa4601455ebb4beaef609bfc86.tar.gz raylib-83d82b6697204efa4601455ebb4beaef609bfc86.zip | |
Update rmodels.c
Diffstat (limited to 'src/rmodels.c')
| -rw-r--r-- | src/rmodels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rmodels.c b/src/rmodels.c index 1f856862..f9ceec13 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -5246,7 +5246,7 @@ static bool GetPoseAtTimeGLTF(cgltf_accessor *input, cgltf_accessor *output, flo float tend = 0.0f; int keyframe = 0; // Defaults to first pose - for (int i = 0; i < input->count - 1; i++) + for (int i = 0; i < (int)input->count - 1; i++) { cgltf_bool r1 = cgltf_accessor_read_float(input, i, &tstart, 1); if (!r1) return false; @@ -5722,7 +5722,7 @@ static Model LoadM3D(const char *fileName) int skinid = m3d->vertex[m3d->face[i].vertex[n]].skinid; // Check if there is a skin for this mesh, should be, just failsafe - if (skinid != M3D_UNDEF && skinid < (int)m3d->numskin) + if ((skinid != M3D_UNDEF) && (skinid < (int)m3d->numskin)) { for (j = 0; j < 4; j++) { |
