I've had that one - for some reason galleys seem able to do it especially well against ships of the line.
The only way to stop them going under as mentioned before is dropping anchors asap. Of course, I don't usually notice it until too late then it'sfor my jolly jack tars.
Bookmarks