1
0

Fix SPCHK argument check

This commit is contained in:
otya128
2017-07-10 21:35:32 +09:00
parent 4dd7ededea
commit 5c77351ab7

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)