This fixes an issue whereby LY was being incremented after the comparison with LY=LYC. This fixes the dmg-acid2 test.