Backported a small fix from Allacrost in the animation code.

Half of it was already there, but the map sprite wasn't.