Skip to content

Commit

Permalink
Fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama committed Apr 25, 2022
1 parent 1d71440 commit 6a342cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Pack
run: |
cd ${{ github.workspace }}/builds/ninja-multi-vcpkg/EIM_artefacts
cp ${{ github.workspace }}/dist/**/* Release/ -r
cp ${{ github.workspace }}/dist/* Release -r
cp ../EIMPluginScanner.exe Release/
Compress-Archive -Path Release/ -DestinationPath EchoInMirror-windows-x64.zip
Expand Down
8 changes: 4 additions & 4 deletions src/actions/TrackActions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,10 +619,10 @@ void ServerService::handleLoadMidi(WebSocketSession*, std::unique_ptr<EIMPackets

const juce::MidiMessageSequence* seq = nullptr;
for (int i = 0, num = 0; i < midi.getNumTracks(); i++) {
auto track = midi.getTrack(i);
if (track->getNumEvents() > num) {
num = track->getNumEvents();
seq = track;
auto it = midi.getTrack(i);
if (it->getNumEvents() > num) {
num = it->getNumEvents();
seq = it;
}
}
if (seq) {
Expand Down

0 comments on commit 6a342cb

Please sign in to comment.