mirror of
https://bitbucket.org/Mattrixwv/luaclasses.git
synced 2025-12-06 18:33:59 -05:00
Fixed bug in double entry bug fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user