summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKermalis <29823718+Kermalis@users.noreply.github.com>2018-10-02 13:51:08 -0400
committerKermalis <29823718+Kermalis@users.noreply.github.com>2018-10-02 13:51:08 -0400
commit53b3ca75de0269d2ebf9931e18a6f1ee3aee6468 (patch)
tree6ff81f1b6ccaef310a9b57374fc3da962fa95f19
parent74f53b37789a25ba0f5249be15f4295ecfe1788c (diff)
parentc13d2b567c28f2e837be2210c83a250c0de4778f (diff)
Merge branch 'master' of https://github.com/pret/pokeemerald
-rw-r--r--tools/mid2agb/midi.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/mid2agb/midi.cpp b/tools/mid2agb/midi.cpp
index 93600d30e..fa7d9ce28 100644
--- a/tools/mid2agb/midi.cpp
+++ b/tools/mid2agb/midi.cpp
@@ -852,6 +852,12 @@ int CalculateCompressionScore(std::vector<Event>& events, int index)
bool IsCompressionMatch(std::vector<Event>& events, int index1, int index2)
{
+ if (events[index1].type != events[index2].type ||
+ events[index1].note != events[index2].note ||
+ events[index1].param1 != events[index2].param1 ||
+ events[index1].time != events[index2].time)
+ return false;
+
index1++;
index2++;