Hi,

If I have any more than ten pointers to ten different sprite sheets i get an access violation on any pointer after that. Any ideas would be appreciated.

Cheers.


Code:
        image=SDL_DisplayFormat(SDL_LoadBMP("A/run.BMP"));
	image2=SDL_DisplayFormat(SDL_LoadBMP("B/jump.BMP"));
	image3=SDL_DisplayFormat(SDL_LoadBMP("A/roll.bmp"));
	image4=SDL_DisplayFormat(SDL_LoadBMP("B/parry.bmp"));
	image5=SDL_DisplayFormat(SDL_LoadBMP("A/side_step.bmp"));
	image6=SDL_DisplayFormat(SDL_LoadBMP("B/flip.bmp"));
	image7=SDL_DisplayFormat(SDL_LoadBMP("A/roundHouse.bmp"));
	image8=SDL_DisplayFormat(SDL_LoadBMP("B/punch.bmp"));
	image9=SDL_DisplayFormat(SDL_LoadBMP("A/sweep.bmp"));
	image10=SDL_DisplayFormat(SDL_LoadBMP("B/block.bmp"));