Congratulations, you found a bug in the trigger defs file. Get the new one here and replace the one in your data folder. (You need to remove the .txt extension so it's a .lst file). If you've made some customizations to your actions.lst file, you can fix your current copy by changing the ModifyUnitResources function from this:
CODE
Action ModifyUnitResourceAmount(Count Count, Player Owner, Location Where, Number NewValue)
{
Action(Where, 0, 0, 0, Owner, 0, 0, 52, Count, 4);
}
to this:
CODE
Action ModifyUnitResourceAmount(Count Count, Player Owner, Location Where, Number NewValue)
{
Action(Where, 0, 0, 0, Owner, NewValue, 0, 52, Count, 4);
}