Add SPSET check

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

No files matched your search

+9 -1
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);