diff options
Diffstat (limited to 'crawl-ref/source/message.cc')
-rw-r--r-- | crawl-ref/source/message.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc index 9789881fbb..bef5843dca 100644 --- a/crawl-ref/source/message.cc +++ b/crawl-ref/source/message.cc @@ -372,6 +372,12 @@ void mprf( const char *format, ... ) void mpr(const char *inf, int channel, int param) { + if (!crawl_state.io_inited) + { + if (channel == MSGCH_WARN) + fprintf(stderr, "%s\n", inf); + return; + } char mbuf[400]; size_t i = 0; const int stepsize = get_number_of_cols() - 1; |