Fix a bug in G_CalculateCombatRanks.