Browse Source

Fix index out of range error in string.Extension()

Kelly Thomas 7 years ago
parent
commit
c7e98eef67
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mono/glue/cs_files/StringExtensions.cs

+ 1 - 1
modules/mono/glue/cs_files/StringExtensions.cs

@@ -225,7 +225,7 @@ namespace Godot
             if (pos < 0)
             if (pos < 0)
                 return instance;
                 return instance;
 
 
-            return instance.Substring(pos + 1, instance.Length);
+            return instance.Substring(pos + 1);
         }
         }
 
 
         // <summary>
         // <summary>