Skip to content

Commit

Permalink
fix: console now reads from line correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaskowicz1 committed Dec 18, 2023
1 parent 8834ed5 commit 06c8db2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ void FDR::read_console() {
std::vector<std::string> strings;
std::string str;
while (std::getline(console_file, str)) {
std::cout << "str: " << str << "\n";
strings.emplace_back(std::move(str));
}
console_file.clear();

last_char_read = console_file.tellg();

console_file.close();
Expand Down

0 comments on commit 06c8db2

Please sign in to comment.