<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Fix comparison of MipLengths.
https://github.com/DentonW/DevIL/pull/86
--- src-IL/src/il_blp.cpp.orig
+++ src-IL/src/il_blp.cpp
@@ -257,7 +257,7 @@ ILboolean iLoadBlpInternal(void)
 						break;
 					if (Image-&gt;Width == 1 &amp;&amp; Image-&gt;Height == 1)  // Already at the smallest mipmap (1x1), so we are done.
 						break;
-					if (Header.MipOffsets[Mip] == 0 || Header.MipLengths == 0)  // No more mipmaps in the file.
+					if (Header.MipOffsets[Mip] == 0 || Header.MipLengths[Mip] == 0)  // No more mipmaps in the file.
 						break;
 				}
 
</pre></body></html>