NetHack / NetHack

Official NetHack Git Repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Curses mode crash bug

k21971 opened this issue · comments

We initially observed this crash in EvilHack (3.6.7 code base) but were able to reproduce it on 3.7 (latest build) as well.

If playing in curses mode, and menustyle:combination is enabled - if you hit the ` key then the spacebar immediately after, the game will crash.

In win/curses/cursdial.c, line 326, if you remove && (def != '\0'), this appears to fix the issue. Did some limited testing to make sure this change didn't break anything else, but further testing is probably warranted.