Fixed bug in double entry bug fix

This commit is contained in:
2019-03-22 19:52:30 -04:00
parent 3d6f2e2da9
commit 72eae379ed

View File

@@ -164,7 +164,7 @@ function getDivisors(goalNumber)
divisors[#divisors + 1] =(goalNumber / possibleDivisor); divisors[#divisors + 1] =(goalNumber / possibleDivisor);
end end
--Take care of a few occations where a number was added twice --Take care of a few occations where a number was added twice
if(divisors(#divisors) == (possibleDivisor + 1)) then if(divisors[#divisors] == (possibleDivisor + 1)) then
possibleDivisor = possibleDivisor + 1; possibleDivisor = possibleDivisor + 1;
end end
end end