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);