Skip to content

Commit

Permalink
Fixed droprelloc to require the correct argument length
Browse files Browse the repository at this point in the history
  • Loading branch information
markdwags committed May 5, 2020
1 parent e5bfc52 commit 33f7aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Razor/Scripts/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ private static bool DropItem(string command, Argument[] args, bool quiet, bool f

private static bool DropRelLoc(string command, Argument[] args, bool quiet, bool force)
{
if (args.Length < 3)
if (args.Length < 2)
{
throw new RunTimeError(null, "Usage: droprelloc (x) (y)");
}
Expand Down

0 comments on commit 33f7aed

Please sign in to comment.