[colobot] 230/390: Fix #395 issue and fix read function

Didier Raboud odyx at moszumanska.debian.org
Fri Jun 12 14:21:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch upstream/latest
in repository colobot.

commit 0ce8f7ad900e248a7d60dfc717c334d4c3bccc83
Author: Piotr Walkusz <piotrwalkusz1 at wp.pl>
Date:   Sat Nov 15 13:45:05 2014 +0100

    Fix #395 issue and fix read function
---
 src/ui/maindialog.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index 19864d3..7278805 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -6164,6 +6164,12 @@ bool CMainDialog::ReadGamerInfo()
     while(!file.eof())
     {
         std::getline(file, line);
+	
+	if(line == "")
+	{
+	    break;
+	}
+	
         sscanf(line.c_str(), "Chapter %d: Scene %d: numTry=%d passed=%d\n",
                 &chap, &i, &numTry, &passed);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list