From 64ee4a54f4730cdf777d75694ab48280f543ac88 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 18:12:44 +0000 Subject: More scoping fixes --- Stars45/MsnWepDlg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Stars45/MsnWepDlg.cpp') diff --git a/Stars45/MsnWepDlg.cpp b/Stars45/MsnWepDlg.cpp index 15cb125..922eb89 100644 --- a/Stars45/MsnWepDlg.cpp +++ b/Stars45/MsnWepDlg.cpp @@ -302,7 +302,7 @@ MsnWepDlg::BuildLists() loadout = msn_load->GetStations(); } - for (i = 0; i < nstations; i++) { + for (int i = 0; i < nstations; i++) { loads[i + first_station] = loadout[i]; } } @@ -485,10 +485,10 @@ MsnWepDlg::OnLoadout(AWEvent* event) for (int i = 0; i < 8; i++) loads[i] = -1; - for (i = 0; i < nstations; i++) + for (int i = 0; i < nstations; i++) loads[i + first_station] = PointIndexToLoad(i, loadout[i]); - for (i = 0; i < 8; i++) { + for (int i = 0; i < 8; i++) { for (int n = 0; n < 8; n++) { btn_load[i][n]->SetPicture(i == loads[n] ? led_on: led_off); } -- cgit v1.1