From 462596a2acca873edad9db35bf3fb42913864632 Mon Sep 17 00:00:00 2001 From: Marja Hassinen Date: Sun, 3 Jan 2010 21:18:52 +0200 Subject: [PATCH] A fix for the "continuing game" feature. --- src/game.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index bd9b0b9..7c9f829 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -588,7 +588,7 @@ void LevelSwitcher::chooseLevelCollection() total = levelCollections[collection].size(); } - newItem->setText(collection + " " + + newItem->setText(collection + " \tPassed: " + QString::number(passed) + " / " + QString::number(total)); levelList->addItem(newItem); // transfers ownership if (first && passed < total) { @@ -706,7 +706,8 @@ void LevelSwitcher::readSavedGames() saveData >> collection; saveData >> level; qDebug() << "Got saved game: " << collection << level; - savedGames.insert(collection, level); + if (collection != "") + savedGames.insert(collection, level); } file.close(); } -- 1.7.9.5