Make wish prompts not remember the input

With EDIT_GETLIN, the wish prompt remembered the previous input,
but this isn't actually useful.
This commit is contained in:
Pasi Kallinen
2018-08-26 12:15:42 +03:00
parent 083e0904db
commit 6b79355494
2 changed files with 2 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ object scattering during shop wall repair was skipped if a trap at the same
spot was also being removed
augmented death reason for "while helpless" was broken for record and logfile
(but still correct for xlogfile)
prevent wish prompt input from remembering the previous wish
Fixes to Post-3.6.1 Problems that Were Exposed Via git Repository

View File

@@ -5071,7 +5071,7 @@ int triesleft;
void
makewish()
{
static char buf[BUFSZ] = DUMMY;
char buf[BUFSZ] = DUMMY;
char promptbuf[BUFSZ];
struct obj *otmp, nothing;
int tries = 0;