Skip to content

Commit 83ad535

Browse files
committed
Simplified struct init.
1 parent f645884 commit 83ad535

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

includes/RhythmGameUtilities/Utilities.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,12 @@ std::vector<BeatBar> CalculateBeatBars(std::map<int, int> bpmChanges,
127127

128128
for (auto tick = startTick; tick <= endTick; tick += resolution)
129129
{
130-
beatBars.push_back(
131-
{.Position = tick, .BPM = bpmChanges[startTick]});
130+
beatBars.push_back({tick, bpmChanges[startTick]});
132131

133132
if (includeHalfNotes && tick != endTick)
134133
{
135-
beatBars.push_back({.Position = tick + resolution / 2,
136-
.BPM = bpmChanges[startTick]});
134+
beatBars.push_back(
135+
{tick + resolution / 2, bpmChanges[startTick]});
137136
}
138137
}
139138
}

0 commit comments

Comments
 (0)