Minor tweaks

This commit is contained in:
Ray
2022-11-22 01:02:54 +01:00
parent 36bb57d1be
commit f6558fe6e0
3 changed files with 5 additions and 5 deletions

View File

@@ -3190,9 +3190,9 @@ FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool
// Unload directory filepaths
void UnloadDirectoryFiles(FilePathList files)
{
if (files.capacity > 0)
if (files.count > 0)
{
for (unsigned int i = 0; i < files.capacity; i++) RL_FREE(files.paths[i]);
for (unsigned int i = 0; i < files.count; i++) RL_FREE(files.paths[i]);
RL_FREE(files.paths);
}