summaryrefslogtreecommitdiff
path: root/games/groundhog/files/patch-src-highscore.cc
blob: 334843c380c6f890b6a539b91243c3b1ef77b893 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- src/highscore.cc/old	Sat May  4 23:43:58 2002
+++ src/highscore.cc	Thu May 23 14:10:49 2002
@@ -26,6 +26,10 @@
    std::string filename = getenv("HOME");
    filename += "/.groundhog.highscore";
    std::ifstream in(filename.c_str());
+   if (in==NULL) {
+       cout << "Couldn't open highscore file (this is normal the first time the game is ran).\n";
+       return;
+   }
    in >> _beginner >> _intermediate >> _expert;
 }