Hi,

Where the following portion of code is located ?
Code:
//skilltree = malloc(totalskills*sizeof(SKILL));
//memset( skilltree[1], 0, sizeof(SKILL));

skilltree[1].NAME = str_create("REST");
//skilltree[1].ICON = str_create("icons\\REST.png");
skilltree[1].ICON = bmap_create("icons\\REST.png");
//skilltree[1].ICON = bmap_createpart("icons\\REST.png",0,0,100,100);
skilltree[1].DESC = str_create("");
skilltree[1].LEVEL = 1;
skilltree[1].PREQ = 0;
skilltree[1].BUY = 1;
skilltree[1].UPGRADE= str_create("+2");
skilltree[1].XTREE = 5;
skilltree[1].YTREE = 3;



If it outside a function then : you can't initialize variables using function calling if it is outside a function. Put the initialization code into a function and call it in the main function, or use a startup (..._startup).

Best regards.