Missed one spot in using opdata.memtype uniformly for discount
(if table present and option enabled)