From fe0f5d7f9645a899cd1aecae596a17fc753efe23 Mon Sep 17 00:00:00 2001 From: rhenninger Date: Sat, 6 Aug 2016 08:40:07 -0400 Subject: [PATCH] Update Skini.cpp --- src/Skini.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Skini.cpp b/src/Skini.cpp index d3197c3..441ffe7 100644 --- a/src/Skini.cpp +++ b/src/Skini.cpp @@ -167,19 +167,19 @@ long Skini :: parseString( std::string& line, Message& message ) switch ( dataType ) { case SK_INT: - message.intValues[iValue] = atoi( tokens[iValue+3].c_str() ); + message.intValues[iValue] = atoi( tokens[iToken].c_str() ); //rgh: use new index message.floatValues[iValue] = (StkFloat) message.intValues[iValue]; ++iToken; //rgh: increment token index and value index (below) break; case SK_DBL: - message.floatValues[iValue] = atof( tokens[iValue+3].c_str() ); + message.floatValues[iValue] = atof( tokens[iToken].c_str() ); //rgh: use new index message.intValues[iValue] = (long) message.floatValues[iValue]; - ++iToken; //rgh: increment token index and value index (below) + ++iToken; //rgh: increment token index and value index (below) break; case SK_STR: // Must be the last field. - message.remainder = tokens[iValue+3]; + message.remainder = tokens[iToken]; //rgh: use new index return message.type; default: // MIDI extension message