Update compat.lua (Fix for change gold)

Fix for change gold bug.
Merge pull request #201 from brewsterl/patch-1

Update compat.lua (Fix for change gold)