Procházet zdrojové kódy

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

Kelly Thomas před 7 roky
rodič
revize
c7e98eef67
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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>