瀏覽代碼

Merge pull request #19077 from KellyThomas/fix-string-extension

mono: Fix index out of range error in string.Extension()
Ignacio Etcheverry 7 年之前
父節點
當前提交
689290d71b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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>