From 3d7d2f569e12a4934c57814eed78973faa700313 Mon Sep 17 00:00:00 2001 From: cohrs Date: Thu, 17 Apr 2003 03:44:02 +0000 Subject: [PATCH] U423 - uninitialized memory access in dolookup fix a case where "cc", which is only set when looking from_screen, in a case where from_screen is not set. --- doc/fixes34.2 | 1 + src/pager.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.2 b/doc/fixes34.2 index ea0426ae4..eb8c66d3a 100644 --- a/doc/fixes34.2 +++ b/doc/fixes34.2 @@ -42,6 +42,7 @@ avoid impossible after eating the object the hero is hiding under failed attempt to eat floor gold while polymorphed would lose the gold running that stops for closed doors should stop at mimics mimicking closed doors allow wishing for magenta potions (ignoring the rank name 'mage') +fix an uninitialized memory access in non-quick dolookup Platform- and/or Interface-Specific Fixes diff --git a/src/pager.c b/src/pager.c index 58d5f0a05..8ba0df33b 100644 --- a/src/pager.c +++ b/src/pager.c @@ -674,7 +674,7 @@ do_look(quick) } /* Kludge: warning trumps boulders on the display. Reveal the boulder too or player can get confused */ - if (sobj_at(BOULDER, cc.x, cc.y)) + if (from_screen && sobj_at(BOULDER, cc.x, cc.y)) Strcat(out_str, " co-located with a boulder"); break; /* out of for loop*/ } -- 2.40.0