From 0ca77d2bb98db0dda428d2c10014b40c151078cd Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Thu, 10 Mar 2016 18:41:54 +0100 Subject: Fix edge condition preventing errors from being displayed --- src/util.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3