Note - I just resolved this.
The Following function I changed CopyObject, to CopyItem.
CTG_CreateSpecificBaseTypeTreasure(int nTreasureType,
object oAdventurer,
object oCont,
int nBaseType1=BASE_ITEM_INVALID,
int nBaseType2=BASE_ITEM_INVALID,
int nBaseType3=BASE_ITEM_INVALID);
But also, I had CRP_s hak being used by this module, so when I compiled, this script did not get compiled fresh, because one of its dependancies came from the hak.
To resolve, I removed the script from crp, and saved fresh so it became a module resource, and then compiled