Fixed the CountOccurrences function

This commit is contained in:
ruri
2019-04-03 07:45:09 +02:00
parent 434ee3a4c5
commit 043c4ad635
+1 -1
View File
@@ -1012,7 +1012,7 @@ namespace RuriLib
// Loop through all instances of the string 'text'.
int count = 0;
int i = 0;
while ((i = text.IndexOf(text, i)) != -1)
while ((i = input.IndexOf(text, i)) != -1)
{
i += text.Length;
count++;