DS Thompson Trade Merchants is suffering from more post release bugs then i'd have liked

Thanks to
@wreckcelsior who pointed out to me about a crash to desktop occurring when pausing the construction of the
Trade: Protein merchant.
Loading the mod up I also got the same experience. The normal construction works fine up until you might press the pause button, then CTD.

Discrepancy work in progress
The problem in a way was it was the only trader crashing, and none of the code was different or incorrect that i thought would be causing it (a crash on press of pause button of
build.rsc dialog). I logically thought the
UIDescription code would be causing issues:
{
ObjectType _type = BuildUI;
ElementDescription _element = "Dialog/DSDialog/Build5DS.rsc:build";
String _insertAt = "pageBuild";
}
Yet all looked fine and was pointing to the same
Build5DS.rsc that was used in a few of the other traders.
the crash though when in the modkit came up with the error the of a size index out of range...

Discrepancy work in progress
So i looked around the
CreatePlacedDescription and
MapDescription code to see faults in map pathing and cell sizes, still none though.
Nothing worked so i replaced most of the template code, tried calling up different models, re-compiled the .fbx models... still would keep crashing, and being only on the build construction UI when pressing pause button I was at a loss.
Turns out i wasn't thinking logically enough, or perhaps this isn't logic at all. the protein trader is unique in that it only has 1
RawMaterialFlag listed in the
TradeDescription,
ResourceGroup code, and within the dialog file
DSThompsonTradeMerchantProteinTrade.rsc is the purchase tabs
TableDescription has an
int _height = 1;This is what is making the purchase tab display just 1
rawmaterial (protein).
I didn't suspect this was originally playing a part as who would think this would effect the construction dialog box? besides, that dialog box should not use any of the code that is to do with the trade purchase table, I never thought as it is inserted at
"pageBuild" which is a separate page within the
StandardDialog.rsc file.
But I wasted hours when it indeed was the culprit. The real reasoning why this happens I do not know. But you need to have a minimum
int _height of
2 within the purchase tabs
TableDescription,
this means you also need to have 2
_resourceGroups listed within the template file
TradeDescription code.

!
a success: ?
Discrepancy work in progress
not quite...
Discrepancy work in progress
Why does this cause a crash with the building construction pause button?
So I'm stuck with minimum of 2...
And I've been at this for over 12hrs.