OSDN Git Service

フォーラムメッセージ https://sourceforge.jp/projects/hengband/forums/30152/33687/72875/
authorDeskull <desull@users.sourceforge.jp>
Sat, 28 Jun 2014 11:04:23 +0000 (20:04 +0900)
committerDeskull <desull@users.sourceforge.jp>
Sat, 28 Jun 2014 11:04:23 +0000 (20:04 +0900)
に従って、Term_fresh()関数を修正。

src/z-term.c

index 4e306cf..e84c518 100644 (file)
@@ -1503,7 +1503,9 @@ errr Term_fresh(void)
 
        term_win *old = Term->old;
        term_win *scr = Term->scr;
-
+       
+       /* Before initialize (Advice from Mr.shimitei)*/
+       if (!old || !scr) return (1);
 
        /* Do nothing unless "mapped" */
        if (!Term->mapped_flag) return (1);