Skip to content

Commit

Permalink
Fixed arguments of ArgumentOutOfRange in BruteForce scaleforms
Browse files Browse the repository at this point in the history
Fixes #106
  • Loading branch information
justalemon committed Mar 27, 2023
1 parent d2eddf8 commit b5f5d90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LemonUI/Scaleform/BruteForce.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public string Word
{
if (value.Length != 8)
{
throw new ArgumentOutOfRangeException("The word needs to be exactly 8 characters long.", nameof(value));
throw new ArgumentOutOfRangeException(nameof(value), "The word needs to be exactly 8 characters long.");
}
word = value;
CallFunction("SET_ROULETTE_WORD", value);
Expand Down Expand Up @@ -116,7 +116,7 @@ public int CloseAfter
{
if (value < -1)
{
throw new ArgumentOutOfRangeException("The Closure time can't be under -1.", nameof(value));
throw new ArgumentOutOfRangeException(nameof(value), "The Closure time can't be under -1.");
}
closeAfter = value;
}
Expand Down Expand Up @@ -212,7 +212,7 @@ public void SetColumnSpeed(int index, float speed)
{
if (index >= 8 || index < 0)
{
throw new ArgumentOutOfRangeException("The index needs to be between 0 and 7.", nameof(index));
throw new ArgumentOutOfRangeException(nameof(index), "The index needs to be between 0 and 7.");
}
CallFunction("SET_COLUMN_SPEED", index, speed);
}
Expand Down

0 comments on commit b5f5d90

Please sign in to comment.