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.
This commit is contained in:
@@ -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*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user