summaryrefslogtreecommitdiff
path: root/tools/mid2agb/agb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mid2agb/agb.cpp')
-rw-r--r--tools/mid2agb/agb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mid2agb/agb.cpp b/tools/mid2agb/agb.cpp
index 29dff20d6..e3e5d8efe 100644
--- a/tools/mid2agb/agb.cpp
+++ b/tools/mid2agb/agb.cpp
@@ -339,7 +339,7 @@ void PrintAgbTrack(std::vector<Event>& events)
if (!foundVolBeforeNote)
PrintByte("\tVOL , 127*%s_mvl/mxv", g_asmLabel.c_str());
- for (unsigned i = 0; i < events.size(); i++)
+ for (unsigned i = 0; events[i].type != EventType::EndOfTrack; i++)
{
const Event& event = events[i];