Fix for-loop syntax to match style convention

This commit is contained in:
Kristian Hartikainen
2023-01-23 13:43:28 +00:00
parent 436fc6e77c
commit d35670932f
2 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ int mj_deleteFileVFS(mjVFS* vfs, const char* filename) {
mju_free(vfs->filedata[i]);
// scroll remaining files forward
for (int j = i; j < vfs->nfile - 1; ++j) {
for (int j=i; j<vfs->nfile-1; j++) {
mjSTRNCPY(vfs->filename[j], vfs->filename[j+1]);
vfs->filesize[j] = vfs->filesize[j+1];
vfs->filedata[j] = vfs->filedata[j+1];