diff --git a/includes/powder.h b/includes/powder.h index 1d3315b3e..e7af268ef 100644 --- a/includes/powder.h +++ b/includes/powder.h @@ -254,6 +254,7 @@ struct part_state int burn; float btemp; }; + typedef struct part_state part_state; //Should probably be const. /* Weight Help diff --git a/src/interface.c b/src/interface.c index 955579a0b..af679d83d 100644 --- a/src/interface.c +++ b/src/interface.c @@ -2321,7 +2321,7 @@ int search_ui(pixel *vid_buf) lasttime = TIMEOUT; } - if(b && !bq && dp!=-1 && search_fav==0) + if(b && !bq && dp!=-1 && search_fav!=0) if(confirm_ui(vid_buf, "Do you want to delete?", search_names[dp], "Delete")) { execute_delete(vid_buf, search_ids[dp]);