Add sprite argument check

This commit is contained in:
otya128 committed 2016-12-31 17:41:24 +09:00
1 parent 94876609de
commit bc11fddd02
2 files changed
+178

No files matched your search

+4
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);