OSDN Git Service

[] [fix] #38997 main-cap.c と main-gcu.c の関数呼び出し修正. / Fix function calls in main-cap...
authordeskull <deskull@users.sourceforge.jp>
Sat, 25 Jan 2020 04:15:58 +0000 (20:15 -0800)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 25 Jan 2020 04:15:58 +0000 (20:15 -0800)
src/main-cap.c
src/main-gcu.c

index a250255..d6b62e0 100644 (file)
@@ -786,7 +786,7 @@ static errr Term_xtra_cap_event(int v)
                i = read(0, buf, 1);
 
                /* Hack -- Handle "errors" */
-               if ((i <= 0) && (errno != EINTR)) exit_game_panic();
+               if ((i <= 0) && (errno != EINTR)) exit_game_panic(p_ptr);
        }
 
        /* Do not wait */
index bab7cf2..88a6a61 100644 (file)
@@ -853,8 +853,8 @@ static errr Term_xtra_gcu_event(int v)
       for (k = 0; (k < 10) && (i == ERR); k++) i = getch();
 
       /* Broken input is special */
-      if (i == ERR) exit_game_panic();
-      if (i == EOF) exit_game_panic();
+      if (i == ERR) exit_game_panic(p_ptr);
+      if (i == EOF) exit_game_panic(p_ptr);
    }
 
    /* Do not wait */
@@ -899,7 +899,7 @@ static errr Term_xtra_gcu_event(int v)
       i = read(0, buf, 1);
 
       /* Hack -- Handle bizarre "errors" */
-      if ((i <= 0) && (errno != EINTR)) exit_game_panic();
+      if ((i <= 0) && (errno != EINTR)) exit_game_panic(p_ptr);
    }
 
    /* Do not wait */