summaryrefslogtreecommitdiff
path: root/music
diff options
context:
space:
mode:
authorKuroiIeWa5Da <tyuki@adu.me>2012-01-23 04:33:56 -0600
committerKuroiIeWa5Da <tyuki@adu.me>2012-01-23 04:33:56 -0600
commit6a85dc48e1ef04b23a72694ed1d0271a44aa22c3 (patch)
treee3911d4f73005a627349f6d65bdf00a2452ad8e8 /music
parent1014adc83cbd6df9bf91a92e5d23d48c601abe07 (diff)
Completed Routes3 music data channel 2
hg-commit-id: ef99ba55bb1b
Diffstat (limited to 'music')
-rw-r--r--music/pokeredmusicdisasm/Parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/music/pokeredmusicdisasm/Parser.cpp b/music/pokeredmusicdisasm/Parser.cpp
index f11d57b6..9fa0af7f 100644
--- a/music/pokeredmusicdisasm/Parser.cpp
+++ b/music/pokeredmusicdisasm/Parser.cpp
@@ -114,7 +114,6 @@ void Parser::ParseNext() // Parses the block immidiately following
for(unsigned int i = filePos; (i <= fileLength) && (stop == false); i++)
{
// There's a way to make this block shorter but for now it does it's job
- filePos = i;
// Check to see if it's the correct data type and if so then use it
if(tmpCall.IsValid(&rawBytesFixed[i])) // Should have made IsValid static
@@ -204,6 +203,8 @@ void Parser::ParseNext() // Parses the block immidiately following
parsedString.push_back(unkCode.str());
}
+ filePos = i;
+
// If the stop address parameter is set, break when we get there
if( (stopAddress != 0) && (i >= stopAddress) ) break;
}