Return the force when indexing game.forces with a force's index, the same as it works for game.players and game.surfaces.
Doesn't work:
Code: Select all
/c game.print(game.forces[game.forces['player'].index].name)
Code: Select all
/c game.print(game.surfaces[game.surfaces['nauvis'].index].name)
/c game.print(game.players[game.players[1].index].name)
I'm indexing some global tables by force index, and i'd like to get the force back without looping through all forces. Besides to me this was "unexpected behavior" as it works fine with players and surfaces.