1
0

Add SPSET check

This commit is contained in:
otya128
2016-12-30 21:01:25 +09:00
parent 5279e5c62e
commit ff19e614c4
2 changed files with 84 additions and 1 deletions

View File

@@ -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);