Crash when selecting 'Teleport to team member' in Spectator Mode
In the Spectator options I should be able to select players to teleport to via the team they are on (Teleport to team member). When I select 'Teleport to team member' my client instantly crashes. This is confirmed for 15w45a and was the same in 15w44b.
Steps to Reproduce:
1. Set gamemode to Spectator
2. Using the number keys, select Teams 'Teleport to team member'
3. Client will crash after selection has been made
Description: Unexpected error java.lang.ArrayIndexOutOfBoundsException: -1 at bch.b(SourceFile:718) at bhl$a.a(SourceFile:124) at bdi.a(SourceFile:102) at bdi.a(SourceFile:84) at bdi.a(SourceFile:64) at bci.a(SourceFile:151) at bms.a(SourceFile:1037) at bbz.as(SourceFile:967) at bbz.a(SourceFile:385) at net.minecraft.client.main.Main.main(SourceFile:125)