fix color parsing

This commit is contained in:
in0finite 2021-11-15 00:04:18 +01:00
parent 6a17618ce6
commit 3c2ff6569a

View file

@ -167,7 +167,7 @@ namespace SanAndreasUnity.Commands
public static Color ParseColor(string[] arguments, int startIndex)
{
if (startIndex + 1 >= arguments.Length)
if (startIndex >= arguments.Length)
throw new System.ArgumentException("Failed to parse color: not enough arguments");
if (!ColorUtility.TryParseHtmlString(arguments[startIndex], out Color color))