Airplanes will drop depth charges based on guesses of your position provided by surface craft, even if you are submerged. I've had it happen in harbors (well, harbor, actually - Port Said, in my unsuccessful attempt to find the Averof.)
Maybe you got unlucky and they managed to hit you from an estimated position.
|