Code:
void change_bitmap()
{
	ptr_remove(inventory_panel->bmap);
	inventory_panel->bmap = bmap_create("newfile.bmp");
}


That should do the trick. Your first version crashes because you assign a char array to a bitmap pointer. This can't work...


Always learn from history, to be sure you make the same mistakes again...