From 72eae379ed9e7a99b06699ed56197e6d735691c1 Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Fri, 22 Mar 2019 19:52:30 -0400 Subject: [PATCH] Fixed bug in double entry bug fix --- Algorithms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms.lua b/Algorithms.lua index 833ee8a..b2f166e 100644 --- a/Algorithms.lua +++ b/Algorithms.lua @@ -164,7 +164,7 @@ function getDivisors(goalNumber) divisors[#divisors + 1] =(goalNumber / possibleDivisor); end --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; end end