Fixed error causing potentially game-destorying memcpy.