# HG changeset patch # User Matthew Wild # Date 1254764368 -3600 # Node ID d5fe0f9b377ad9f1fa986865d048f304b4d8cffe # Parent 5ac99cd465458bcbd455993c37b5586bc1b538e5 util.array: Small logic fix for array:filter() diff -r 5ac99cd46545 -r d5fe0f9b377a util/array.lua --- a/util/array.lua Mon Oct 05 17:56:31 2009 +0100 +++ b/util/array.lua Mon Oct 05 18:39:28 2009 +0100 @@ -43,7 +43,7 @@ end end - if inplace and write < start_length then + if inplace and write <= start_length then for i=write,start_length do outa[i] = nil; end