Skip to content

Commit

Permalink
Fixed array initialization formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ooxi committed Jan 7, 2016
1 parent 86a4edd commit 9e9a34c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/windows/CharStatsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,16 @@ void CharStatsWindow::refresh() {
const char* str;
};

BoolString perks[] = { { m_player->Unstoppable, "+unstoppable" }, {
m_player->PoisonBullets, "+poisonbullets" }, { m_player->BigCalibre,
"+bigcalibre" }, { m_player->Telekinesis, "+telekinesis" }, {
m_player->NightVision, "+nightvision" }, { m_player->Looting,
"+looting" }, { m_player->WideSight, "+widesight" }, { m_player->Magneto, "+magneto" } };
BoolString perks[] = {
{ m_player->Unstoppable, "+unstoppable" },
{ m_player->PoisonBullets, "+poisonbullets" },
{ m_player->BigCalibre, "+bigcalibre" },
{ m_player->Telekinesis, "+telekinesis" },
{ m_player->NightVision, "+nightvision" },
{ m_player->Looting, "+looting" },
{ m_player->WideSight, "+widesight" },
{ m_player->Magneto, "+magneto" }
};

for (unsigned i = 0; i < sizeof(perks) / sizeof(BoolString); ++i)
if (perks[i].f)
Expand Down

0 comments on commit 9e9a34c

Please sign in to comment.