No map is not a global variable.
Then where is it defined? It isn't in the header of CSprite that you posted. And however it is defined, it is unlikely that &name.member makes sense.
Oh, I see what your saying. You are correct I never defined it in the header to be used across both of those functions. im going to try to make a struct named map with int tile in it. Is there a better way to do this?