diff --git a/examples/models/models_animation_playing.c b/examples/models/models_animation_playing.c index fd708b7dd..59849a867 100644 --- a/examples/models/models_animation_playing.c +++ b/examples/models/models_animation_playing.c @@ -52,6 +52,10 @@ int main(void) // Load animation data int animsCount = 0; ModelAnimation *anims = LoadModelAnimations("resources/models/iqm/guyanim.iqm", &animsCount); + if (anims==0) { + TraceLog(LOG_ERROR, "Failed to load animations. You must run this example from the `examples/models` folder"); + return -1; + } int animFrameCounter = 0; DisableCursor(); // Catch cursor