rogue4: don't try to close the scorefile if it isn't open.
The MSVC library uses a debug assertion to prevent closing file descriptors that are negative. This is always the case with the scoreboard file descriptor if the scoreboard has been compiled out.
This commit is contained in:
parent
4bd72ac69f
commit
097b315235
1 changed files with 4 additions and 1 deletions
|
|
@ -160,7 +160,10 @@ register FILE *savef;
|
|||
/*
|
||||
* close any open score file
|
||||
*/
|
||||
if (fd >= 0) {
|
||||
close(fd);
|
||||
fd = -1;
|
||||
}
|
||||
move(LINES-1, 0);
|
||||
refresh();
|
||||
fstat(md_fileno(savef), &sbuf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue