View Single Post
  #2   (View Single Post)  
Old 17th April 2011
thirdm thirdm is offline
Spam Deminer
 
Join Date: May 2009
Posts: 248
Default

Where was gr->tower given a value? Where was memory for screen allocated?

But you said all this worked before you moved into the struct. What's the definition of this struct? You moved it in like this?

struct GameRes { .... SDLRect rcFlora[2]; ...};

Or did you do something like the following and forget to allocate room for the member array?


struct GameRes { .... SDLRect rcFlora[]; ...};

Also, you don't want the address of an int, you want the address of an SDL_Rect, but I'm guessing that was just a flub, that sentence.

Last edited by thirdm; 17th April 2011 at 04:59 PM.
Reply With Quote