summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc_gui.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/misc_gui.c b/misc_gui.c
index a02a80c15..37d7c2509 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -496,12 +496,8 @@ static void ErrmsgWndProc(Window *w, WindowEvent *e)
DeleteWindow(w);
break;
case WE_DESTROY: {
- TileHighlightData *thd = _thd_ptr;
- TileIndex tile = thd->redsq;
- thd->redsq = 0;
+ SetRedErrorSquare(0);
_switch_mode_errorstr = INVALID_STRING_ID;
- if (tile != 0)
- MarkTileDirtyByTile(tile);
break;
}