mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix llDetectedName return value.
Astonishingly, llDetectedName returns NULL_KEY for invalid indices.
This commit is contained in:
parent
d8cf384ccc
commit
65d3f1130a
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ def llDetectedName(idx, event=None):
|
||||||
assert isinteger(idx)
|
assert isinteger(idx)
|
||||||
if 0 <= idx <= 15 and (event in DetectionEvents or event is None):
|
if 0 <= idx <= 15 and (event in DetectionEvents or event is None):
|
||||||
raise ELSLCantCompute
|
raise ELSLCantCompute
|
||||||
return u''
|
return NULL_KEY;
|
||||||
|
|
||||||
def llDetectedOwner(idx, event=None):
|
def llDetectedOwner(idx, event=None):
|
||||||
assert isinteger(idx)
|
assert isinteger(idx)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue