Fix SPCHK argument check

This commit is contained in:
otya128 committed 2017-07-10 21:35:32 +09:00
1 parent 4dd7ededea
commit 5c77351ab7
1 file changed
+4
+4
View File
@@ -2208,6 +2208,10 @@ class BuiltinFunction
{
throw new OutOfRange(smilebasicFunctionName, 1);
}
if (!p.sprite.isSpriteDefined(id))
{
throw new IllegalFunctionCall("SPCHK", 1);
}
return p.sprite.spchk(id);
}
static void SPPAGE(PetitComputer p, int page)