summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-02 21:58:41 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-02 21:58:41 +0300
commitbaeb28e714b477f0fb09ad0cbe70c8b8af39d312 (patch)
tree97097f584c32448e42dc648ba58c25e10ea43691
parent233fb68cb852fbfcfe39e3c291768f76e178523c (diff)
downloadtakethis-baeb28e714b477f0fb09ad0cbe70c8b8af39d312.tar
takethis-baeb28e714b477f0fb09ad0cbe70c8b8af39d312.tar.xz
takethis-baeb28e714b477f0fb09ad0cbe70c8b8af39d312.zip
Loading fix.
-rw-r--r--src/game.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 4ddb0e3..601a71f 100644
--- a/src/game.c
+++ b/src/game.c
@@ -161,6 +161,7 @@ static void save()
static void load()
{
FILE *f = fopen("save", "r");
+ if (!f) return;
first_gulag = readnum(f);
int c = fgetc(f);
if (c == 'g') {