hi Joozey, great thread ! I can see structs more clearly now.

I understood how you deal with structs, but I have a little prob with this part :

void item_visualize( Inventory *inventory, PANEL *panel ) {

panel->bmap = inventory->image;

}

when I try to compile the code I've the message : 'image': is not a member of 'Inventory'


so I can't call the function like this : item_visualize( inventory->item1, inventory->panel );


I modified the part like this :


void item_visualize( Inventory *inventory, PANEL *panel ) {

panel->bmap = inventory->item1->image;

}

But it's not a good way for me. Can you tell me what's wrong ?

Regards,
WapiAchak