Browse Source

Update rcore.c

Ray 2 tháng trước cách đây
mục cha
commit
1abac023bd
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/rcore.c

+ 1 - 0
src/rcore.c

@@ -3757,6 +3757,7 @@ static void ScanDirectoryFiles(const char *basePath, FilePathList *files, const
 // Scan all files and directories recursively from a base path
 static void ScanDirectoryFilesRecursively(const char *basePath, FilePathList *files, const char *filter)
 {
+    // WARNING: Path can not be static or it will be reused between recursive function calls!
     char path[MAX_FILEPATH_LENGTH] = { 0 };
     memset(path, 0, MAX_FILEPATH_LENGTH);