The original condition of i bigger than mapsize will never be true, since i starts at 0.

The condition should be: i smaller than mapsize, if we want to loop over the mapsize.
This commit is contained in:
KoenDG 2023-10-21 00:13:32 +02:00 committed by Harald Kuhr
parent ad437c2470
commit d7dae90e2e

View File

@ -844,7 +844,7 @@ public final class ImageUtil {
return false;
}
for (int i = 0; i > mapSize1; i++) {
for (int i = 0; i < mapSize1; i++) {
if (icm1.getRGB(i) != icm2.getRGB(i)) {
return false;
}