Add SPSET check
This commit is contained in:
1 parent
5279e5c62e
commit
ff19e614c4
2 files changed
+84
-1
No files matched your search
+9
-1
@@ -1028,7 +1028,15 @@ class Sprite
|
||||
{
|
||||
if(parent >= child)
|
||||
{
|
||||
throw new IllegalFunctionCall("SPLINK");
|
||||
throw new IllegalFunctionCall("SPLINK", 2);
|
||||
}
|
||||
if (!isSpriteDefined(child))
|
||||
{
|
||||
throw new IllegalFunctionCall("SPLINK", 1);
|
||||
}
|
||||
if (!isSpriteDefined(parent))
|
||||
{
|
||||
throw new IllegalFunctionCall("SPLINK", 2);
|
||||
}
|
||||
parent = spid(parent);
|
||||
child = spid(child);
|
||||
|
||||
Reference in new issue
Block a user