From 3b180b2980083fbcc818247d7c73368917290e91 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 30 Jan 2007 22:58:49 +0000 Subject: [PATCH] gmtool compilation problem fixed. --- src/eressea/gmtool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eressea/gmtool.c b/src/eressea/gmtool.c index 04f9015f1..09b6f2341 100644 --- a/src/eressea/gmtool.c +++ b/src/eressea/gmtool.c @@ -191,8 +191,10 @@ read_args(int argc, char **argv) } if (turn==-1) { char fname[MAX_PATH]; + FILE * F; + sprintf(fname, "%s/turn", basepath()); - FILE * F = fopen(fname, "r+"); + F = fopen(fname, "r+"); if (F) { fgets(fname, sizeof(fname), F); turn = atoi(fname);