Again, this was something need to be in that situation, but it doesnt have to do anything with Odens wish.
If Luffy sees a fish which got caught by Sanji, he wishes for the fish to eat. And when Luffy dies in that right moment, that doesnt changed his wish for being pirate king. Or do you think someone than inherits his will to eat that fish to fullfill his lifetime wish of eating that fish?