Skip to content

Commit

Permalink
Update src/Layers/xrRender/DetailManager_CACHE.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY authored Oct 10, 2024
1 parent 0a186b9 commit 9462a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layers/xrRender/DetailManager_CACHE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void CDetailManager::cache_Update(int v_x, int v_z, Fvector& view)
}
}

// We sort indexes and process them in reverse order to erase correctly from cache_task
// Because indexes become invalid after an erase, sort them and process in the reverse order to erase everything correctly
std::sort(bestIndexes, bestIndexes + dm_max_decompress);

for (int i = dm_max_decompress - 1; i >= 0; --i)
Expand Down

0 comments on commit 9462a0a

Please sign in to comment.