Speculative fix for error in thumbnails rendering

This commit is contained in:
Wojtek Figat
2025-02-12 22:13:29 +01:00
parent c146e156ec
commit ee540b3cb7

View File

@@ -496,7 +496,7 @@ namespace FlaxEditor.Content.Thumbnails
// Prepare requests
bool isAnyReady = false;
int checks = Mathf.Min(10, _requests.Count);
for (int i = 0; i < checks; i++)
for (int i = 0; i < checks && i < _requests.Count; i++)
{
var request = _requests[i];
try