Quote:
Originally Posted by milikabdp
Tried it allready but the getsprite acctually changes the pointer. So alloc is the leak then. Anyhow already tried and no help
|
hmm. where is alkis?! I'm sure he could fix this in no time
#1) where do you have the "sprite->x =0;" lines?
i think they have to be in the same function and below the "struct SimpleSprite * sprite;" line.
Code:
struct SimpleSprite * sprite;
sprite->x=0;
sprite->y=0;
sprite->height=9;
int sprite_num = GetSprite(sprite, 1);
if (sprite_num != -1) {