diff options
-rw-r--r-- | games/sail/player.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/sail/player.h b/games/sail/player.h index 10df412ca50..0a32cd087bb 100644 --- a/games/sail/player.h +++ b/games/sail/player.h @@ -93,9 +93,9 @@ #define SLOT_R (SLOT_L+SLOT_X-1) #ifdef SIGTSTP -#define SCREENTEST() (initscr() != ERR && signal(SIGTSTP, SIG_DFL) != SIG_ERR && STAT_R < COLS && SCROLL_Y > 0) +#define SCREENTEST() (initscr() != NULL && signal(SIGTSTP, SIG_DFL) != SIG_ERR && STAT_R < COLS && SCROLL_Y > 0) #else -#define SCREENTEST() (initscr() != ERR && STAT_R < COLS && SCROLL_Y > 0) +#define SCREENTEST() (initscr() != NULL && STAT_R < COLS && SCROLL_Y > 0) #endif WINDOW *view_w; |