Problem: Cmdline_row can become negative, causing a crash.
Solution: Make sure cmdline_row does not become negagive. (closes #4102)
i = get_number(TRUE, mouse_used);
if (KeyTyped)
{
- /* don't call wait_return() now */
- /* msg_putchar('\n'); */
- cmdline_row = msg_row - 1;
+ // don't call wait_return() now
+ if (msg_row > 0)
+ cmdline_row = msg_row - 1;
need_wait_return = FALSE;
msg_didany = FALSE;
msg_didout = FALSE;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1509,
/**/
1508,
/**/