diff --git a/src/osuparser.cpp b/src/osuparser.cpp index 235eb44..bb5cd52 100644 --- a/src/osuparser.cpp +++ b/src/osuparser.cpp @@ -251,6 +251,7 @@ inline std::string checkAndRemove(const std::string &str, const std::string &pre type val;\ while (ss >> val) {\ std::getline(configFile, line);\ + line_len = line.size();\ value.push_back(val);\ }\ configFile.seekg(configFile.tellg() - line_len);\ @@ -263,6 +264,7 @@ inline std::string checkAndRemove(const std::string &str, const std::string &pre type type_val;\ for (std::string val; std::getline(ss, val, sep);) {\ std::stringstream(val) >> type_val;\ + line_len = line.size();\ value.push_back(type_val);\ }\ configFile.seekg(configFile.tellg() - line_len);\ @@ -275,6 +277,7 @@ inline std::string checkAndRemove(const std::string &str, const std::string &pre type type_val;\ for (std::string val; std::getline(ss, val, sep);) {\ std::stringstream(val) >> type_val;\ + line_len = line.size();\ value.push_back(type_val);\ }\ configFile.seekg(configFile.tellg() - line_len);\