minor fix for texture packer command.

This commit is contained in:
2019-01-08 14:58:57 -06:00
parent 5e9d64e181
commit 442ec92d32
2 changed files with 14 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ namespace RecrownedAthenaeum.Tools.TextureAtlasTools
{
if (arguments[i] == "-9p")
{
if (i + 5 >= arguments.Length) throw new ArgumentException("-9p is not followed by proper specifiers for a 9Patch (format: \"-9p textureName,a,b,c,d\" where a, b, c, and d are integers definining the border regions for the 9patch.)");
if (i + 1 >= arguments.Length) throw new ArgumentException("-9p is not followed by proper specifiers for a 9Patch (format: \"-9p textureName,a,b,c,d\" where a, b, c, and d are integers definining the border regions for the 9patch.)");
string[] nPatchArgs = arguments[i + 1].Split(',');
try
{