mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
LSO no longer returns -1 for llListFindList([], [])
This commit is contained in:
parent
002ef96a9d
commit
14a97090bf
2 changed files with 3 additions and 4 deletions
|
@ -1522,9 +1522,8 @@ def llListFindList(lst, elems):
|
||||||
if L2 > L1:
|
if L2 > L1:
|
||||||
return -1 # can't find a sublist longer than the original list
|
return -1 # can't find a sublist longer than the original list
|
||||||
if L2 == 0:
|
if L2 == 0:
|
||||||
# empty list is always found at position 0 in Mono,
|
# empty list is always found at position 0
|
||||||
# and in LSO if the first list isn't empty
|
return 0
|
||||||
return -1 if lslcommon.LSO and L1 == 0 else 0
|
|
||||||
for i in xrange(L1-L2+1):
|
for i in xrange(L1-L2+1):
|
||||||
for j in xrange(L2):
|
for j in xrange(L2):
|
||||||
e1 = lst[i+j]
|
e1 = lst[i+j]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
[-1, 0]
|
[0, 0]
|
Loading…
Add table
Add a link
Reference in a new issue