As you can see I do safety checks to not access invalid positions in the array. The string in the variable g_Teleports is no longer than 15 characters.
I can't reproduce it even when typing the same command etc. The crash seems purely random.
And the weirdest part is that a couple of weeks/months ago there haven't been any problems with this particular function, it just came out of nothing .. :/ I even used format and no safety checks at all at that time.