summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-13 19:25:14 +0000
committerrubidium <rubidium@openttd.org>2008-04-13 19:25:14 +0000
commit9a73b698d4045fcf19a46193cecde62bb9626bae (patch)
tree62fb23e679baa7d7fef852eba8960e2a582d1f52 /src/window_gui.h
parent04138ddffca9a2614849e5040501c2e4ee0311fd (diff)
downloadopenttd-9a73b698d4045fcf19a46193cecde62bb9626bae.tar.xz
(svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 330a6f6e9..665bcde22 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -10,6 +10,7 @@
#include "viewport_type.h"
#include "player_type.h"
#include "strings_type.h"
+#include "core/alloc_type.hpp"
/**
* The maximum number of windows that can be opened.
@@ -289,7 +290,7 @@ struct WindowMessage {
/**
* Data structure for an opened window
*/
-struct Window {
+struct Window : ZeroedMemoryAllocator {
uint16 flags4; ///< Window flags, @see WindowFlags
WindowClass window_class; ///< Window class
WindowNumber window_number; ///< Window number within the window class