From 202129f4ccd4c75c11856a372ef8ef3f51b9509d Mon Sep 17 00:00:00 2001 From: Matthew Ellison Date: Sun, 15 Sep 2019 23:36:26 -0400 Subject: [PATCH] Fixed bug in isFound --- Algorithms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms.lua b/Algorithms.lua index edfc93e..9f6a698 100644 --- a/Algorithms.lua +++ b/Algorithms.lua @@ -336,7 +336,7 @@ end function isFound(ary, key) for cnt = 1, #ary do - if(ary[ary] == key) then + if(ary[cnt] == key) then return true; end end