Flip operands in comparisons

This commit is contained in:
korenkonder
2023-04-08 11:09:35 +03:00
parent 242fe022a1
commit 908a838dab
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ void texture_database::add(texture_database_file* tex_db_file) {
size_t length = src_size;
size_t temp;
while (length > 0)
if (id <= info[temp = length / 2].id)
if (info[temp = length / 2].id >= id)
length /= 2;
else {
info += temp + 1;