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
commitffe07b929283461b2bc3bf8bd92d2f4dba4fb985 (patch)
tree19922dbd3ab8f9b031264a12448be11c9a76242e /src/newgrf_gui.cpp
parent3256b24dd6aae8adaafef616e8ce7a42dc233ade (diff)
downloadopenttd-ffe07b929283461b2bc3bf8bd92d2f4dba4fb985.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 {