mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix llGetListEntryType.
This commit is contained in:
parent
94550af95a
commit
a6955c4057
1 changed files with 1 additions and 1 deletions
|
@ -1113,7 +1113,7 @@ def llGetListEntryType(lst, pos):
|
||||||
assert islist(lst)
|
assert islist(lst)
|
||||||
assert isinteger(pos)
|
assert isinteger(pos)
|
||||||
try:
|
try:
|
||||||
return Types(lst[pos])
|
return Types[type(lst[pos])]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
return 0 # TYPE_INVALID
|
return 0 # TYPE_INVALID
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue