summaryrefslogtreecommitdiffhomepage
path: root/Stars45/PlayerDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/PlayerDlg.cpp')
-rw-r--r--Stars45/PlayerDlg.cpp10
1 files changed, 5 insertions, 5 deletions
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;