mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 14:00:17 +00:00
fix color parsing
This commit is contained in:
parent
6a17618ce6
commit
3c2ff6569a
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue