diff --git a/src/files.c b/src/files.c index 92bb10596..01ad0569f 100644 --- a/src/files.c +++ b/src/files.c @@ -1675,6 +1675,7 @@ int retryct; if (lockfd == -1) { HUP raw_printf("Cannot open file %s. Is NetHack installed correctly?", filename); + nesting--; return FALSE; } sflock.l_type = F_WRLCK;