From 6566941077cd468752f697c336c4665dd212bea5 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 26 May 2005 19:41:58 +0000 Subject: [PATCH] (svn r2366) Use SetRedErrorSquare() instead of home brewed version --- misc_gui.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/misc_gui.c b/misc_gui.c index a02a80c152..37d7c25096 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; }