Browse Source

Fixed wrong line being added.

release/0.19
JustinAJ 11 years ago
parent
commit
143d8a08af
  1. 2
      Jupiter/File.cpp

2
Jupiter/File.cpp

@ -102,7 +102,7 @@ bool Jupiter::File::addData(const Jupiter::ReadableString &data)
unsigned int wc = data.wordCount(ENDL); unsigned int wc = data.wordCount(ENDL);
if (wc == 0) return false; if (wc == 0) return false;
for (unsigned int i = 0; i < wc; i++) Jupiter::File::data_->lines.add(new Jupiter::StringS(std::move(Jupiter::StringS::getWord(data, 0, ENDL)))); for (unsigned int i = 0; i < wc; i++) Jupiter::File::data_->lines.add(new Jupiter::StringS(std::move(Jupiter::StringS::getWord(data, i, ENDL))));
return true; return true;
} }

Loading…
Cancel
Save