Skip to content

Commit e9c55ab

Browse files
authored
Merge pull request #37 from neogeek/hotfix/struct-init
[hotfix] Simplified struct init.
2 parents f645884 + 83ad535 commit e9c55ab

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)