Prevent illegal positions for tmp_at
It seems like m_throw() can call tmp_at() with !isok coordinates, so prevent those in both functions
This commit is contained in:
@@ -900,6 +900,7 @@ tmp_at(x, y)
|
||||
break;
|
||||
|
||||
default: /* do it */
|
||||
if (!isok(x,y)) break;
|
||||
if (tglyph->style == DISP_BEAM || tglyph->style == DISP_ALL) {
|
||||
if (tglyph->style != DISP_ALL && !cansee(x,y)) break;
|
||||
if (tglyph->sidx >= TMP_AT_MAX_GLYPHS) break; /* too many locations */
|
||||
|
||||
Reference in New Issue
Block a user