From 12b80da7f61df440a6e3252012436fb0baebe073 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Thu, 15 Feb 2024 16:32:41 -0700 Subject: Fixed up animation system --- src/assets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/assets.c') diff --git a/src/assets.c b/src/assets.c index 05e2b04..e0aa0a8 100644 --- a/src/assets.c +++ b/src/assets.c @@ -29,7 +29,7 @@ void loadAnimations(Assets* assets) { char filePath[ASSETS_NAME_MAX]; snprintf(filePath, ASSETS_NAME_MAX, "assets/%s", animationAssetsNames[i]); - assets->animations[i] = loadAnimationFromFile(filePath); + assets->animations[i] = loadAnimationAssetFromFile(filePath); } } @@ -62,7 +62,7 @@ void closeAssets(Assets* assets) // Animations. for (int i = 0; i < ANIMATION_ASSET_COUNT; ++i) { - freeAnimation(&assets->animations[i]); + freeAnimationAsset(&assets->animations[i]); } TraceLog(LOG_INFO, "Assets closed"); -- cgit v1.2.3