From b99e49da45c3414e9288b6013ab37a937858b300 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 28 May 2025 10:53:12 -0500 Subject: [PATCH] don't use x as varname for 1d vector index --- src/scenedit/scen.actions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scenedit/scen.actions.cpp b/src/scenedit/scen.actions.cpp index 3014275b..71416d32 100644 --- a/src/scenedit/scen.actions.cpp +++ b/src/scenedit/scen.actions.cpp @@ -226,7 +226,7 @@ void update_mouse_spot(location the_point) { static bool handle_lb_action(int i){ fs::path file_to_load; - int x; + int j; draw_lb_slot(i,1); play_sound(37); mainPtr().display(); @@ -303,9 +303,9 @@ static bool handle_lb_action(int i){ mouse_button_held = false; break; case LB_LOAD_TOWN: - x = pick_town_num("select-town-edit",cur_town,scenario); - if(x >= 0){ - cur_town = x; + j = pick_town_num("select-town-edit",cur_town,scenario); + if(j >= 0){ + cur_town = j; town = scenario.towns[cur_town]; set_up_main_screen(); if(overall_mode == MODE_EDIT_SPECIALS){