I'll take a look at the code, in the meantime, Rainer and Sira have both a stack of arrows with more than 99 items - split both stacks and you can sail off.
Normally you can't stack things to more than 99 items, the only exception seems to be when buying from unlimited number of items. I think...