From c7e98eef67639d6ba66fae80d2d691e1a8af79d4 Mon Sep 17 00:00:00 2001 From: Kelly Thomas Date: Mon, 21 May 2018 18:45:48 +0800 Subject: [PATCH] Fix index out of range error in string.Extension() --- modules/mono/glue/cs_files/StringExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/glue/cs_files/StringExtensions.cs b/modules/mono/glue/cs_files/StringExtensions.cs index 21090fb68d5..eaeed7b37bd 100644 --- a/modules/mono/glue/cs_files/StringExtensions.cs +++ b/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); } //