summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-03-27 15:48:54 +0000
committerpeter1138 <peter1138@openttd.org>2008-03-27 15:48:54 +0000
commitcb7b5877469e16308289a8c853f1c11e21283cb0 (patch)
tree19922dbd3ab8f9b031264a12448be11c9a76242e /src/newgrf_gui.cpp
parent8988c1f7c16002e42ee81e782cfc74bb53d90594 (diff)
downloadopenttd-cb7b5877469e16308289a8c853f1c11e21283cb0.tar.xz
(svn r12445) -Fix: Add missing compile asserts for window data structs
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index f153caced..7c44be08e 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -114,6 +114,7 @@ struct newgrf_add_d {
GRFConfig **list;
const GRFConfig *sel;
};
+assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(newgrf_add_d));
/* Names of the add a newgrf window widgets */
enum AddNewGRFWindowWidgets {