Fix llGetListEntryType.

This commit is contained in:
Sei Lisa 2017-01-19 04:46:11 +01:00
parent 94550af95a
commit a6955c4057

View file

@ -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: