소스 검색

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

Kelly Thomas 7 년 전
부모
커밋
c7e98eef67
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)
                 return instance;
 
-            return instance.Substring(pos + 1, instance.Length);
+            return instance.Substring(pos + 1);
         }
 
         // <summary>