After the second fight scene in the showers, Goose said to Maverick, “At least Viper got ice man before he got us”. Viper did not engage anyone; it was Jester who got both of them.
Maverick was probably talking about an earlier hop during the day, in which Viper probably "killed" Iceman, not that he had just been killed by Viper. Mavericks wingman for that hop was also Hollywood, not Iceman.