avoid crash upon exit under Windows with curses

This commit is contained in:
nhmall
2023-09-24 11:34:58 -04:00
parent 0b472d15f5
commit e1e9a2f364

View File

@@ -495,7 +495,8 @@ nethack_exit(int code)
#endif
if (getreturn_enabled) {
raw_print("\n");
wait_synch();
if (iflags.window_inited)
wait_synch();
}
exit(code);
}