Since the problem clearly does have something to do with flags, losing a mast that doesn't have a flag shouldn't cause a problem.
Non-player ships never change their flag, unless they surrender when it should go white.
I wonder what would happen if we'd rename all flag# and penn# locators to merely flag and penn without any trailing numbers.
Even the not rerigged stock game ships had their masts changed for the sake of adding the penn locators, so still those are fine.
And if I remember correctly, the stock game ships never had a number appended to their locator type.
Non-player ships never change their flag, unless they surrender when it should go white.
I wonder what would happen if we'd rename all flag# and penn# locators to merely flag and penn without any trailing numbers.
Even the not rerigged stock game ships had their masts changed for the sake of adding the penn locators, so still those are fine.
And if I remember correctly, the stock game ships never had a number appended to their locator type.