16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 00:49:19 +02:00

Fix not all cars are loaded

This commit is contained in:
docentYT
2026-05-04 11:31:42 +02:00
parent cef6b258a1
commit e8335a316b

View File

@@ -229,7 +229,8 @@ std::string cParser::readTokenFromStream(bool ToLower, const char *Break)
while (token.empty() && mStream->peek() != EOF) {
while (mStream->get(c)) {
while (mStream->peek() != EOF) { // idk why but with mStream->get(c) not all cars are loaded
c = static_cast<char>(mStream->get());
if (c == '\n') {
++mLine;
}