You might not have an obligation to risk your life saving other people, but if you do, you should go for saving the greatest number. That's more or less what Theon Pummer believes. Listen to him discussing the morality of rescue with David Edmonds in this episode of the Philosophy Bites podcast