summaryrefslogtreecommitdiffhomepage
path: root/Stars45/CmdIntelDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/CmdIntelDlg.cpp')
-rw-r--r--Stars45/CmdIntelDlg.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Stars45/CmdIntelDlg.cpp b/Stars45/CmdIntelDlg.cpp
index a08e816..67e5424 100644
--- a/Stars45/CmdIntelDlg.cpp
+++ b/Stars45/CmdIntelDlg.cpp
@@ -186,14 +186,14 @@ CmdIntelDlg::ExecFrame()
CombatEvent* info = events[i];
const char* unread = info->Visited() ? " " : "*";
- int i = lst_news->AddItemWithData(unread, (DWORD) info) - 1;
+ int j = lst_news->AddItemWithData(unread, (DWORD) info) - 1;
char dateline[32];
FormatDayTime(dateline, info->Time());
- lst_news->SetItemText(i, 1, dateline);
- lst_news->SetItemText(i, 2, info->Title());
- lst_news->SetItemText(i, 3, info->Region());
- lst_news->SetItemText(i, 4, Game::GetText(info->SourceName()));
+ lst_news->SetItemText(j, 1, dateline);
+ lst_news->SetItemText(j, 2, info->Title());
+ lst_news->SetItemText(j, 3, info->Region());
+ lst_news->SetItemText(j, 4, Game::GetText(info->SourceName()));
if (!info->Visited())
auto_scroll = true;