mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Handle llGetLinkName with invalid values
This commit is contained in:
parent
980b588986
commit
6d959f6f90
1 changed files with 5 additions and 0 deletions
|
@ -299,6 +299,11 @@ def llGetInventoryPermMask(item, category):
|
||||||
return 0
|
return 0
|
||||||
raise ELSLCantCompute
|
raise ELSLCantCompute
|
||||||
|
|
||||||
|
def llGetLinkName(link):
|
||||||
|
link = fi(link)
|
||||||
|
if link < -2147483646 or link > 256:
|
||||||
|
return NULL_KEY
|
||||||
|
raise ELSLCantCompute
|
||||||
|
|
||||||
def llGetOwnerKey(id):
|
def llGetOwnerKey(id):
|
||||||
id = fk(id)
|
id = fk(id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue