Fix memory allocation when swapping to a remaster.
Merge pull request #2700 from unknownbrackets/hd-fix

Fix memory allocation when swapping to a remaster