diff options
-rw-r--r-- | csv/csv.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/csv/csv.cpp b/csv/csv.cpp index d899e11a..79841bea 100644 --- a/csv/csv.cpp +++ b/csv/csv.cpp @@ -73,9 +73,11 @@ bool getGameData(int id, unsigned char* table, QString& gamename) while (auto sz = file.readLine(buf, sizeof(buf))) { QString line = decoder.decode(QByteArrayView{buf, sz}); - chomp(line); if (line.isEmpty()) + break; + chomp(line); + if (line.isEmpty()) continue; gameLine = line.split(';', Qt::SplitBehaviorFlags::KeepEmptyParts); |