Commits

Anonymous committed 0a2b4e3

Fix bug in tweet manager

  • Participants
  • Parent commits f83e941

Comments (1)

Files changed (1)

File HamOntFire.Core/TweetManager.cs

                     {
                         // Remove the " TO GREENHILL" part
                         int i = intersection.IndexOf(" TO ", StringComparison.Ordinal);
-                        intersection = intersection.Remove(i);
+                        if (i >= 0)
+                            intersection = intersection.Remove(i);
                     }
 
                     intersection = intersection.Replace(" TO ", " & ");