diff options
| author | João Coelho <[email protected]> | 2019-10-29 14:57:19 +0000 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-10-29 15:57:19 +0100 |
| commit | 75b0264f35d8895c1e64c7c7bc85d1572d167cf2 (patch) | |
| tree | d02dd8ce1f168e60c5f7e9551b9dca1101fdf51b /src/models.c | |
| parent | 64c588e9d8e9cb34da4fe592ae091d62f59d6853 (diff) | |
| download | raylib-75b0264f35d8895c1e64c7c7bc85d1572d167cf2.tar.gz raylib-75b0264f35d8895c1e64c7c7bc85d1572d167cf2.zip | |
fix various problems, thanks CppCheck :) (#1005)
* explained a bit more the core_window_letterbox example
* fixed a few 'ups' moments that could lead to mild head pain and time loss
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/models.c b/src/models.c index 501f1e70..f70dd409 100644 --- a/src/models.c +++ b/src/models.c @@ -929,12 +929,16 @@ ModelAnimation *LoadModelAnimations(const char *filename, int *animCount) { TraceLog(LOG_ERROR, "Magic Number \"%s\"does not match.", iqm.magic); fclose(iqmFile); + + return NULL; } if (iqm.version != IQM_VERSION) { TraceLog(LOG_ERROR, "IQM version %i is incorrect.", iqm.version); fclose(iqmFile); + + return NULL; } // Get bones data |
