Skip to content

Commit

Permalink
Fix get total lane indices
Browse files Browse the repository at this point in the history
  • Loading branch information
VioletXF committed Sep 4, 2024
1 parent 30d61d2 commit 6d12e44
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Chart.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ class ChartMeta {

[[nodiscard]] std::vector<int> GetTotalLaneIndices() const {
std::vector<int> Result;
Result.insert(Result.end(), GetKeyLaneIndices().begin(),
GetKeyLaneIndices().end());
Result.insert(Result.end(), GetScratchLaneIndices().begin(),
GetScratchLaneIndices().end());
std::vector<int> keyLaneIndices = GetKeyLaneIndices();
std::vector<int> scratchLaneIndices = GetScratchLaneIndices();
Result.insert(Result.end(), keyLaneIndices.begin(), keyLaneIndices.end());
Result.insert(Result.end(), scratchLaneIndices.begin(),
scratchLaneIndices.end());

return Result;
}
};
Expand Down

0 comments on commit 6d12e44

Please sign in to comment.