From 61cae70fe53653dab79ed90cb9418f6c88c2145a Mon Sep 17 00:00:00 2001 From: darkvater Date: Thu, 13 Jan 2005 16:50:20 +0000 Subject: (svn r1497) -Fix: [1101179] Crash if generating land while industry window is open. This also happened for towns and the land information window -Added DeleteWindowByClass() function that deletes all windows of a given class --- functions.h | 1 + 1 file changed, 1 insertion(+) (limited to 'functions.h') diff --git a/functions.h b/functions.h index 6ddcf05ba..b3e99906f 100644 --- a/functions.h +++ b/functions.h @@ -201,6 +201,7 @@ void InvalidateWindow(byte cls, WindowNumber number); void InvalidateWindowWidget(byte cls, WindowNumber number, byte widget_index); void InvalidateWindowClasses(byte cls); void DeleteWindowById(WindowClass cls, WindowNumber number); +void DeleteWindowByClass(WindowClass cls); void SetObjectToPlaceWnd(int icon, byte mode, Window *w); void SetObjectToPlace(int icon, byte mode, WindowClass window_class, WindowNumber window_num); -- cgit v1.2.3-54-g00ecf