a late bot() call was observed on GUI Windows so prevent such a crash

This commit is contained in:
nhmall
2018-12-08 22:08:55 -05:00
parent 01625455d9
commit afc34d3016
3 changed files with 25 additions and 6 deletions

View File

@@ -234,7 +234,8 @@ do_statusline2()
void
bot()
{
if (youmonst.data && iflags.status_updates) {
/* dosave() flags completion by setting u.uhp to -1 */
if ((u.uhp != -1) && youmonst.data && iflags.status_updates) {
#ifdef STATUS_HILITES
bot_via_windowport();
#else