1
0

Add sprite argument check

This commit is contained in:
otya128
2016-12-31 17:41:24 +09:00
parent 94876609de
commit bc11fddd02
2 changed files with 178 additions and 0 deletions

View File

@@ -1204,6 +1204,10 @@ class Sprite
return sprites.length > id + spmax;
}
}
bool isValidDef(int def)
{
return def >= 0 && def < SPDEFTable.length;
}
bool spused(int id)
{
id = spid(id);