View Single Post
Old 26 September 2017, 01:36   #8
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by milikabdp View Post
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) {

Last edited by emufan; 26 September 2017 at 01:56.
emufan is offline  
 
Page generated in 0.04596 seconds with 11 queries