mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
Fix for #653
This commit is contained in:
parent
a84ab829ea
commit
b924b2cb9e
@ -15,6 +15,9 @@ end
|
||||
|
||||
local function determine_length(arr, previous_length)
|
||||
local idx = previous_length
|
||||
if idx == 1 and arr[idx] == nil then
|
||||
return 0
|
||||
end
|
||||
for i = previous_length, 1, -1 do
|
||||
if arr[i] ~= nil then
|
||||
idx = i
|
||||
|
Loading…
x
Reference in New Issue
Block a user