hey look there,
Code:
struct Ssprite *sprite;
you are declaring just a array of type struct Ssprite not the array of pointer of type struct Ssprite.
and in the bottom of your code
Code:
new_animation->sprite[i] = load_sprite(filename,x,y,width,height,x_offset,y_o ffset);
struct Ssprite* load_sprite(char *file_name, int x, int y, int width, int height, int x_offset, int y_offset)
u are assiging a pointer to an array of struct Ssprite.which is not correct , the array should be a pointer to pointer of type struct Ssprite
Code:
struct Ssprite *sprite[10]; or **sprite if dynamic memory allocation
s.s.harish