Example: Game.GetPlayer().GetItemCount(xxx)
If xxx is an item defined in my mod, it works. If xxx is an item defined in Skyrim.esm, it works. But if xxx is defined in a DLC which is a master to the mod, then the game crashes. It appears that the Papyrus engine is treating any non-zero top byte in a formid as "current mod". (Zero is left alone, as that's vanilla Skyrim.)
The xxx above can be a property that's auto-filled, or a local variable that's set to the item, and the same results are seen. Debug.trace(xxx) will show the correct value of the formid, with the DLC's LO byte as the top one when it crashes.
Can anyone else confirm this theory, or better, suggest a work-around?