diff --git a/examples/dotnet/cstsp.cs b/examples/dotnet/cstsp.cs index a4372d6145..8cbe901be0 100644 --- a/examples/dotnet/cstsp.cs +++ b/examples/dotnet/cstsp.cs @@ -107,7 +107,7 @@ class Tsp size = Convert.ToInt32(args[0]); } int forbidden = 0; - if (args.Length > 0) { + if (args.Length > 1) { forbidden = Convert.ToInt32(args[1]); } int seed = 0;