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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user