diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-03-10 18:41:54 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-03-10 19:02:23 +0100 |
commit | 0ca77d2bb98db0dda428d2c10014b40c151078cd (patch) | |
tree | 13fe24a546fb09312dfadb9a09a92e4933095256 /src | |
parent | 8a7e17e88e60c841f4086be30f8a090aa651a722 (diff) |
Fix edge condition preventing errors from being displayed
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc index 8bdd532d..f5b3e09c 100644 --- a/src/util.cc +++ b/src/util.cc @@ -1869,7 +1869,10 @@ void cmsg_print(byte color, cptr msg) /* if (character_generated) message_add(t); */ /* Window stuff */ - p_ptr->window |= (PW_MESSAGE); + if (p_ptr) + { + p_ptr->window |= (PW_MESSAGE); + } /* Remember the message */ msg_flag = TRUE; |