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/PlayerDlg.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Stars45/PlayerDlg.cpp') diff --git a/Stars45/PlayerDlg.cpp b/Stars45/PlayerDlg.cpp index d0eb8d9..234c724 100644 --- a/Stars45/PlayerDlg.cpp +++ b/Stars45/PlayerDlg.cpp @@ -90,7 +90,7 @@ PlayerDlg::RegisterControls() REGISTER_CLIENT(EID_CLICK, img_medals[i], PlayerDlg, OnMedal); } - for (i = 0; i < 10; i++) { + for (int i = 0; i < 10; i++) { txt_chat[i] = (EditBox*) FindControl(300 + i); } @@ -192,7 +192,7 @@ PlayerDlg::ShowPlayer() } } - for (i = 0; i < 10; i++) { + for (int i = 0; i < 10; i++) { if (txt_chat[i]) txt_chat[i]->SetText(p->ChatMacro(i)); } @@ -219,7 +219,7 @@ PlayerDlg::ShowPlayer() img_medals[i]->Hide(); } - for (i = 0; i < 10; i++) { + for (int i = 0; i < 10; i++) { if (txt_chat[i]) txt_chat[i]->SetText(""); } @@ -349,9 +349,9 @@ PlayerDlg::OnMedal(AWEvent* event) AwardShowDlg* award_dlg = manager->GetAwardDlg(); if (p && award_dlg) { - int m = -1; + int m = -1, i; - for (int i = 0; i < 15; i++) { + for (i = 0; i < 15; i++) { if (event->window == img_medals[i]) { m = i; break; -- cgit v1.1