don't use x as varname for 1d vector index
This commit is contained in:
@@ -226,7 +226,7 @@ void update_mouse_spot(location the_point) {
|
|||||||
|
|
||||||
static bool handle_lb_action(int i){
|
static bool handle_lb_action(int i){
|
||||||
fs::path file_to_load;
|
fs::path file_to_load;
|
||||||
int x;
|
int j;
|
||||||
draw_lb_slot(i,1);
|
draw_lb_slot(i,1);
|
||||||
play_sound(37);
|
play_sound(37);
|
||||||
mainPtr().display();
|
mainPtr().display();
|
||||||
@@ -303,9 +303,9 @@ static bool handle_lb_action(int i){
|
|||||||
mouse_button_held = false;
|
mouse_button_held = false;
|
||||||
break;
|
break;
|
||||||
case LB_LOAD_TOWN:
|
case LB_LOAD_TOWN:
|
||||||
x = pick_town_num("select-town-edit",cur_town,scenario);
|
j = pick_town_num("select-town-edit",cur_town,scenario);
|
||||||
if(x >= 0){
|
if(j >= 0){
|
||||||
cur_town = x;
|
cur_town = j;
|
||||||
town = scenario.towns[cur_town];
|
town = scenario.towns[cur_town];
|
||||||
set_up_main_screen();
|
set_up_main_screen();
|
||||||
if(overall_mode == MODE_EDIT_SPECIALS){
|
if(overall_mode == MODE_EDIT_SPECIALS){
|
||||||
|
Reference in New Issue
Block a user