retreat: Fix infinite loop when third argument contains '?'
Broken in commit bb5dfd8
, v4.3.16. Fix by recognizing '?' only when
getting the argument interactively.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
b3453efdfc
commit
c699949326
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ retreat(int type)
|
|||
*pq = 0;
|
||||
break;
|
||||
}
|
||||
if (ch == '?') {
|
||||
if (ch == '?' && !player->argp[3]) {
|
||||
for (j = 1; rflagsc[j]; j++) {
|
||||
if (rflagsc[j] != 'X')
|
||||
pr("%c\tretreat when %s\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue